Skip to content
Prev 307188 / 398506 Next

Multiple graphs > boxplot

Does something like this make any sense?

library(reshape2)
library(ggplot2)
yy  <-  structure(list(A = c(23, 21, 21, 20, 19, 19), B = c(20, 18, 20, 
19, 20, 18), C = c(15, 15, 15, 12, 13, 13)), .Names = c("A", 
"B", "C"), class = "data.frame", row.names = c(NA, -6L))

y1  <-  melt(yy)  # using reshape2 

ggplot(y1, aes(variable, value))+ geom_boxplot() 

# or

ggplot(y1, aes(variable, value))+ geom_boxplot()  + facet_grid(variable ~ .)




John Kane
Kingston ON Canada
____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!