[R] Background Colour in Lattice Plots

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Thu Nov 11 22:26:38 CET 2004



Sivakumar Mohandass wrote:

> Dear all,
> 
> How can I change the default background to white in lattice plots?
> 
> Thanks,
> Shiva.
> 

Hi Shiva,

Depending on what version of R/Lattice you have, you can do the following:

# R-2.0.0/Lattice 0.10-13
trellis.par.set(theme = col.whitebg())

# pre R-2.0.0
lset(col.whitebg())

--sundar




More information about the R-help mailing list