[R] labels and barchart
Robert Ruser
robert.ruser at gmail.com
Tue Dec 21 12:59:00 CET 2010
2010/12/21 Dieter Menne <dieter.menne at menne-biomed.de>:
> Standard graphics has fallen a bit out of favor because of these quirks. Try
> lattice:
>
> library(lattice)
> x <- seq(20, 100, by=15)
> ety <- paste("Effect on treatment group",1:length(x))
> barchart(ety~x)
>
> Note that the ety labels must be different to make this work. With your
> original data, you only get one bar (and I needed some time to find out what
> was wrong).
Thank you. I know that lattice in some circumstances is better but I
find traditional graphics more controllable.
More information about the R-help
mailing list