[R] Changing colour in barchart

Deepayan Sarkar deepayan.sarkar at gmail.com
Mon Sep 26 20:42:36 CEST 2011


On Mon, Sep 26, 2011 at 2:55 PM, shikantaza <martyn.wilkinson at uhb.nhs.uk> wrote:
> Hello. I've been trying to change the colour of the bars in the auto.key to
> blue and red. I have tried:
>
> barchart(Rate~Digit,Ben,groups=Cat, horizontal=FALSE,ylab="Rate
> (%)",auto.key=list(points=FALSE,rectangles=TRUE,space="right"),col =
> c("blue", "red"),main="Benford's rate vs combined \n sample rate Lab X")
>
> with various combinations of par.settings, but none of them seem to work.

See ?simpleTheme

-Deepayan



More information about the R-help mailing list