[R] Backgrounds in Multiple Plots made with "fig"

From: Tom La Bone <booboo_at_gforcecable.com>
Date: Sun, 06 Jul 2008 07:24:06 -0700 (PDT)

The following code was adapted from an example Vincent Zoonekynd gave on his web site http://zoonek2.free.fr/UNIX/48_R/03.html:

n <- 1000
x <- rnorm(n)
qqline(x, col="red")
op <- par(fig=c(.02,.5,.5,.98), new=TRUE) hist(x, probability=T,

     col="light blue", xlab="", ylab="", main="", axes=F) lines(density(x), col="red", lwd=2)

How can I make the background in the small box in the upper left-hand corner be a different color than the background in the main plot and erase any of the main plot that happens to be behind the box?


View this message in context: http://www.nabble.com/Backgrounds-in-Multiple-Plots-made-with-%22fig%22-tp18302602p18302602.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 06 Jul 2008 - 14:33:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 07 Jul 2008 - 07:31:57 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive