Re: [R] Boxplots: side-by-side

2009-06-24 Thread Richard M. Heiberger
Try this Rich tmp <- data.frame( y=rnorm(100), category=rep(factor(letters[1:5]),each=20), level=rep(factor(0:1), length=100)) tmp table(tmp[,2:3]) tmp$y[with(tmp, category=="a" & level=0)] <- NA tmp$y[with(tmp, category=="a" & level==0)] <- NA tmp$y[with(tmp, category=="e" & level==1)] <- NA t

Re: [R] Boxplots: side-by-side

2009-06-24 Thread stephen sefick
reproducible code. On Wed, Jun 24, 2009 at 8:53 AM, Santosh wrote: > Dear R-sians.. > > I am trying to plot boxplots with side-by-side option.. I tried some of the > posted suggestions and could not make it work due to unequal sizes of > categories... > > e.g. > weekly measured water depth values

[R] Boxplots: side-by-side

2009-06-24 Thread Santosh
Dear R-sians.. I am trying to plot boxplots with side-by-side option.. I tried some of the posted suggestions and could not make it work due to unequal sizes of categories... e.g. weekly measured water depth values are categorized into 5 levels based on their values such measurement is again cate