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

hadley wickham h.wickham at gmail.com
Mon Nov 17 23:57:55 CET 2008


On Mon, Nov 17, 2008 at 3:42 PM, steve <fisk at bowdoin.edu> wrote:
> Thank you. Here's my version, using melt instead of do.call(make.groups...
>
> library(reshape)
> fgl2 = melt(fgl[,-10])
> fgl2$type = fgl$type
> bwplot(value ~ type | variable, data = fgl2)

Or even more succintly:

fgl2 <- melt(fgl, id = "type")

Hadley

-- 
http://had.co.nz/



More information about the R-help mailing list