R xyplot and background color

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

R xyplot and background color

Bryan Sykes
Hi:

I have tried (unsuccessfully) to change the default
background color for my xyplot.  I have used
trellis.device(bg = "white", new = F) and
par(bg="white") before my xyplot command.  Yet the
color of the background has not changed.  Is there
something else I need to do?  I am using a windows
based machine to do this.


Thanks,

BLS

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: R xyplot and background color

Manuel Morales
On Tue, 2006-02-21 at 12:49 -0800, Bryan Sykes wrote:
> Hi:
>
> I have tried (unsuccessfully) to change the default
> background color for my xyplot.  I have used
> trellis.device(bg = "white", new = F) and
> par(bg="white") before my xyplot command.  Yet the
> color of the background has not changed.  Is there
> something else I need to do?  I am using a windows
> based machine to do this.

Try xyplot(..., par.settings=list(background="white"))

HTH,

Manuel

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html