[R] Background color Windows device (newbie)
andy_liaw at merck.com
Fri Oct 1 14:13:14 CEST 2004
What you should realize is that xYplot() uses lattice, and that color theme
is the default for lattice. trellis.device() has the `theme' argument that
you can use to change it. The help page explains how you can change the
theme: list of components that change the settings of the device
opened, or, a function that when called produces such a list.
The function name can be supplied as a quoted string.
A possible use of this argument is to change the default
settings at session startup, for example by setting
'options(lattice.theme = "col.whitebg")'. If 'theme' is a
function, it will not be supplied any arguments, however, it
is guaranteed that a device will already be open when it is
called, so one may use '.Device' inside the function to
ascertain what device has been opened.
> From: Jean-Louis Abitbol
> Dear R Gurus
> Just started on R !
> Using xYplot from Hmisc (R 1.9, W2K) I get a grey/blue
> background that I
> would like to change to white (ie no background) or may be to another
> Tried to do that with par(bg) but only changed the color of
> the trellis
> What's the right command to do that ?
> Kind regards, JL
> PS if anyone has nice default settings for win device please let me
> know. I used win.slide in Splus but apparently this does not
> work in R.
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide!
More information about the R-help