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
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
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
3 matches
Mail list logo