Here is how I tried to do a simple side-by-side boxplot:

# Create new dataframe (cultivar, values, idx)
# cbind goes by column so the cn column is repeated for us
cultivars <- cbind(cultivar=wheat$cn, stack(wheat[2:15]))
boxplot(values ~ cultivar, data=cultivars,
        main="Kernel distribution", xlab="Cultivar", ylab="Count")
abline("v"=1.5:5.5)

This approach generated different boxplots than what I saw I with Jim's,
but I could be doing something incorrectly.

--jason

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to