[datatable-help] Boxplot of mean, sd, max, min without raw data

affableambler nfields at gmail.com
Wed Apr 12 22:49:03 CEST 2017


Do you want a separate box plot for each row?  If so, try this:

library(ggplot2)

#Read in the data:
data<-read.table('E:\\Libraries\\Documents\\WCM4.txt',sep='\t',header=T,stringsAsFactors
= F)

#Remove column of row numbers
data$x<-NULL

#Run a for loop to create separate boxplots for the data in each row:
for(row in 1:ncol(data)){boxplot(as.numeric(as.vector(data[row,])))}

Feel free to adjust the parameters of boxplot() as needed.



--
View this message in context: http://r.789695.n4.nabble.com/Boxplot-of-mean-sd-max-min-without-raw-data-tp4730939p4731631.html
Sent from the datatable-help mailing list archive at Nabble.com.


More information about the datatable-help mailing list