Skip to content
Prev 309461 / 398506 Next

boxplots of various levels

I am not sure I understand exactly what you want but does this do anything like what you want?

library(ggplot2)
mydata  <-  data.frame(result = rnorm(100), group = rep(c("1", "2"), each = 50), 
                       side = sample(c("L", "R"), 100, replace = TRUE) , dtime = rep(1:10, each=10))

p  <-  ggplot(mydata , aes( group, result, fill = side ))+ geom_boxplot() +
                            facet_wrap(~dtime)
p 

John Kane
Kingston ON Canada
____________________________________________________________
Send any screenshot to your friends in seconds...
Works in all emails, instant messengers, blogs, forums and social networks.
TRY IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if2 for FREE