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.
Martyn.
--
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.
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