Hi
I think
?bxp
( the pars section of it)
is what you are searching for.
x <- rnorm(100)
par(bg = "white")
boxplot(x, col = "white",
notch=T,medcol="black",whiskcol="white",boxfill=TRUE)
HTH
Lukas Schefczyk
--------------------------------------------------
From: "Frostygoat" <frostygoat at gmail.com>
Sent: Monday, March 29, 2010 8:09 PM
To: <r-help at r-project.org>
Subject: [R] Inverse plot colors?
> 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.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.