[R] ? Nice colors for lattice?

Deepayan Sarkar deepayansarkar at yahoo.com
Tue Feb 26 16:20:51 CET 2002



Plans to shore up mechanisms to enable easy handling of the settings are in 
the pipeline. The current plan is to have "lattice.theme" objects which 
would be lists (similar to the trellis.settings object in the current 
version, but need have only the components that you want to change). 

The problem with "bw" is an error on my part. However, it is supposed to be 
exactly equivalent to trellis.device(postscript, col = F, bg = "white").

[Because of the way things currently are, the following would make these 
settings available on any device:

trellis.device(<your favorite device>)
trellis.device(postscript, col = F, bg = "white")
dev.off() # will create an unnecessary Rplots.ps
## "bw" settings now available on <your favorite device>

This is of course undesirable behaviour and would hopefully be changed by 
the next version]





--- Peter Malewski <malewski.peter at mh-hannover.de> wrote:
> 
> Thanks Martin, 
>  "white.bg" looks much better. "bw" seems to have a problem:
> 
> 
> > lset(theme="bw")
> Error in trellis.par.set("background", list(col = bg)) : 
>  Object "bg" not found
> > traceback()
> 2: trellis.par.set("background", list(col = bg))
> 1: lset(theme = "bw")
> 
> Perhaps I'll try to create my own themes (when I've time). Wouldn't
> it be usefull if the themes are stored in a special objects where a 
> user can easy modify or create a new theme? Now I have to change the
> lset-function by hand (or create a file with settings). 
> PM
> 


__________________________________________________

Yahoo! Sports - Coverage of the 2002 Olympic Games

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list