[R] Error Bars in lattice- barcharts

Felix Andrews felix at nfrac.org
Thu Apr 8 06:54:06 CEST 2010

On 8 April 2010 06:03, Ivan Gregoretti <ivangreg at gmail.com> wrote:
> Hi Sam and everybody,
> Can you educate me a little bit on the use of barchart?
> A command like this
> barchart(~table(someProperty), data=A)
> produces a barchart with horizontal bars.

That should be
barchart(table(someProperty), data=A)
     (the method for objects of class "table")

> I want to produce that graph but with VERTICAL bars.
> clearly, horizontal=FALSE does not work.

and you will find that horizontal = FALSE does work.

Felix Andrews / 安福立
Postdoctoral Fellow
Integrated Catchment Assessment and Management (iCAM) Centre
Fenner School of Environment and Society [Bldg 48a]
The Australian National University
Canberra ACT 0200 Australia
M: +61 410 400 963
T: + 61 2 6125 4670
E: felix.andrews at anu.edu.au
CRICOS Provider No. 00120C

More information about the R-help mailing list