Skip to content
Prev 309392 / 398506 Next

create 3x2 panel boxplots

I'm not sure it is "the most elegant" way but you can do this with ggplot2
You may have to install it, (install.packages("ggplot2")

A very basis  example:

library(ggplot2)
mydata  <-  data.frame(aa = rep(letters[1:6], each = 11), bb = rep( c("x", "y"), 11),
                       cc  <-  rnorm(66))
p  <-  ggplot(mydata , aes( bb, cc ))+ geom_boxplot() +
                            facet_wrap( ~ aa ) 
p 

Setting up the overall plot with titles, etc., can take a bit of time and head-pounding, but if you are doing a lot of graphs ggplot2 is a very useful tool to learn.  

John Kane
Kingston ON Canada
____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!