Matt Goff <goff <at> nawwal.org> writes:
>
>
> The problem is that boxplot is displaying groups that are empty in the
> plot.
>
Call factor() again on the groups, which will drop levels. You can do that in an
extra line, or on-the-fly:
data<-data.frame(values=c(1:25), groups=rep(c("A","B","C","D","E"),
each=5))
data = subset(data,groups!="C")
boxplot(values~factor(groups), data=data)
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html