[R] An array of an array of boxplots in lattice

steve fisk at bowdoin.edu
Mon Nov 17 19:50:42 CET 2008

Using the data set fgl in MASS the following code

for(i in 1:9){
boxplot(fgl[,i] ~ type, data = fgl,main=dimnames(fgl)[[2]][i])}

produces a 3 by 3 array of plots, each one of which consists of six 

Is it possible to do this in lattice?


  "R version 2.7.2 (2008-08-25)" on Ubuntu 6.06

More information about the R-help mailing list