[R] Lattice: vertical barchart
Michael Hoffman
b3i4old02 at sneakemail.com
Tue Jul 10 16:06:23 CEST 2007
barchart(Titanic, stack=F) produces a very nice horizontal barchart.
Each panel has four groups of two bars.
barchart(Titanic, stack=F, horizontal=F) doesn't produce the results I
would have expected, as it produces this warning message:
Warning message:
y should be numeric in: bwplot.formula(x = as.formula(form), data =
list(Class = c(1,
And it results in each panel having 22 groups of 0-2 bars.
How can I produce something just like the original except with the
orientation changed?
Thanks in advance.
More information about the R-help
mailing list