Skip to content

? Nice colors for lattice?

4 messages · Martin Maechler, Peter Malewski, Deepayan Sarkar

#
Just a quick question: Does anybody has a nice palette (
yes, I know that this isn't the right lattice-command) for lattice?
I'm just making some graphs for a poster-presentation and I'm don't really
like these trellice colors. 

Thanks
Peter
#
Peter> Just a quick question: Does anybody has a nice
    Peter> palette ( yes, I know that this isn't the right
    Peter> lattice-command) for lattice?  I'm just making some
    Peter> graphs for a poster-presentation and I'm don't really
    Peter> like these trellice colors.

Doug Bates recently mentioned (not on R-help) :

DBates> but I wanted to remind everyone that
DBates> grid/lattice now has "themes".  Try

  library(lattice)
  show.settings()
  lset(theme = 'white.bg')
  show.settings()

I hope this helps you further.

Martin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Thanks Martin, 
 "white.bg" looks much better. "bw" seems to have a problem:
Error in trellis.par.set("background", list(col = bg)) : 
	Object "bg" not found
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
On Tue, Feb 26, 2002 at 11:58:02AM +0100, Martin Maechler wrote:

  
    
#
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:
__________________________________________________

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._