[R] Inverse plot colors?

Frostygoat frostygoat at gmail.com
Mon Mar 29 20:09:02 CEST 2010


Hi, I'm looking for a way to get white boxplots on a black
background.  The following is insufficient because although the box is
white, I can't figure out how to change the whisker color to white.

x <- rnorm(100)
par(bg = "black")
boxplot(x)
boxplot(x, col = "white", notch=T)

Is there no way to specify inverse colors  and then not change
background etc.?

I'm using R with Mac and Quartz.

Thanks for ideas.



More information about the R-help mailing list