> From: Max Kuhn@BDX on 06/28/99 08:23 AM
>
> Can anyone tell me how to change the default point and line colors for
> command-line Trellis graphics, such as xyplot and dotplot? The default on my
> machine (NT with V 4.5 R1) is to make points and lines a cornea-damaging cyan.
It depends on the device: I guess you mean on a colour graphsheet. If cyan
damages your cornea, how do you cope with the white background on a commands
window or an ordinary graphsheet (white = cyan+red, so had the cyan effect)?
(Takes tongue out of cheek.)
> I have seen the code in the Trellis user's manual, such as
>
> > trellis.device(postscript, color = T)
> > plot.symbol <- trellis.par.get("plot.symbol")
> > plot.symbol
>
> and the change can be made using trellis.par.set("plot.symbol").
>
> This works fine for each individual graphsheet or trellis.device. However, I
> would like to change the *default* traits so that when I start a graphics
> device, the colors are already changed so that I don't have to alter anything.
>
> I realize that I could just write another function that calls the graphics
> device and makes the change, but I would rather directly call xyplot(...).
>
> I hope I haven't missed anything obvious. Thanks in advance.
You want to alter the trellis default settings for a colour graphsheet.
Make a copy of trellis.settings.colorgrphsht, alter it as you like it,
and make sure it is high up your search path.
The manuals do not tell you how to do this as it is not generally
a good idea. A better idea might be to alter the colour scheme settings
on the graphsheet device, as I suspect the problem with cyan is a lack of
perceived contrast with the grey background: I notice this particularly
on LCD displays, which (often) have a quite different gamma from CRTs.
I find I have to adjust the colour scheme for just about every computer
projector I get to use.
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|