[R] Changing colour in barchart

shikantaza martyn.wilkinson at uhb.nhs.uk
Mon Sep 26 11:25:12 CEST 2011

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.
Thanks in advance.


View this message in context: http://r.789695.n4.nabble.com/Changing-colour-in-barchart-tp3843209p3843209.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list