[R] Lattice: vertical barchart

Deepayan Sarkar deepayan.sarkar at gmail.com
Tue Jul 10 20:15:29 CEST 2007


On 7/10/07, Sundar Dorai-Raj <sundar.dorai-raj at pdf.com> wrote:
>
>
> Michael Hoffman said the following on 7/10/2007 7:06 AM:
> > 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.
> >
>
> Hi, Michael,
>
> It seems that barchart.table doesn't allow the horizontal = FALSE
> argument. With a slight modification to barchart.table this can be
> accomplished.

Thanks Sundar. This seems like a reasonable feature; I'll add it in
the next update.

-Deepayan



More information about the R-help mailing list