Skip to content
Prev 245519 / 398506 Next

labels and barchart

Robert Ruser wrote:
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).

Dieter