Hi, I am running R on my iBook (OS X 10.4) and whenever I try and plot a model that has been run, I get a grey background. This makes the plot difficult to read on b&w printouts. I have tried changing the background to white (or any other color) without any success. Here's a current example plot(augPred(m2corn.nlme, level=0:1), bg="transparent", lty=c(1,4), pch=19, cex=.75,new=TRUE) plot(augPred(m3corn.nlme, level=0:1), lty=c(1,4), pch=19, new=TRUE) Notice that if I run this code at the same time, there are some par arguments that work as I would expect and others that seem to have no effect. For example, bg="transparent" and new=TRUE both seem to be ignored. This is annoying because teh grey background makes light colors difficult to see. Additionally, I would like new=TRUE to work so that I can actually create these two plots at the same time. Any ideas on how to get this to work? -- Peter Rich peterich@uga.edu 706-542-4508 Graduate Research Assistant Instructional Technology University of Georgia Athens, GA, USA 30605 [[alternative HTML version deleted]]
On 12/2/05, Peter Rich <pjrich at gmail.com> wrote:> Hi, > I am running R on my iBook (OS X 10.4) and whenever I try and plot a > model that has been run, I get a grey background. This makes the plot > difficult to read on b&w printouts. I have tried changing the background > to > white (or any other color) without any success. Here's a current example > > plot(augPred(m2corn.nlme, level=0:1), bg="transparent", lty=c(1,4), pch=19, > cex=.75,new=TRUE) > plot(augPred(m3corn.nlme, level=0:1), lty=c(1,4), pch=19, new=TRUE) > > Notice that if I run this code at the same time, there are some par > arguments that work as I would expect and others that seem to have no > effect. For example, bg="transparent" and new=TRUE both seem to be > ignored. This is annoying because teh grey background makes light colors > difficult to see. Additionally, I would like new=TRUE to work so that I can > actually create these two plots at the same time. Any ideas on how to get > this to work?Most nlme plots are Trellis plots (using the lattice package), where traditional graphics rules don't apply. You need to read up on lattice. ?lattice would be a good start. -Deepayan