[R] Lattice: set col = "black" for box.rectangle and box.umbrella

Duncan Mackay dulcalma at bigpond.com
Fri Jul 3 03:49:55 CEST 2015


Hi

I usually avoid global settings as they may change between graphs therefore
I use the par.settings in each plot

My settings are

       par.settings = list(fontsize = list(text = 10.5,
                                           points = 8),
                           strip.background = list(col = "transparent"),
                           box.dot = list(col = "#FF0000", # red
                                          pch = "|"),
                           box.rectangle = list(col = "#000000",
                                                lty = 1),
                           box.umbrella = list(col = "#000000",
                                               lty = 1),
                           plot.symbol = list(alpha = 1,
                                              col = "#000000",
                                              cex = 0.7,
                                              pch = 20)
                  ),

This gives a red line instead of the large dot: it avoids "bulls-eyes"
across the panel when there are a lot of factors

Regards

Duncan

Duncan Mackay
Department of Agronomy and Soil Science
University of New England
Armidale NSW 2351
Email: home: mackay at northnet.com.au


-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Rich Shepard
Sent: Friday, 3 July 2015 04:52
To: r-help at r-project.org
Subject: Re: [R] Lattice: set col = "black" for box.rectangle and
box.umbrella

On Thu, 2 Jul 2015, Bert Gunter wrote:

> 1. box.rectangle, etc. are not functions;  they are (lists of)
> parameters that are sublists of the par.settings list.

Bert,

   Thought so ...

> 2. Read the Help for simpleTheme() -- it has a specific list of
> parameters which is nothing like what you show.

   found the simpleTheme example on a web forum thread. Mea culpa! Will read
the help page. Still desire to have the changes set in .Rprofile rather than
for each plot.

Thanks,

Rich

______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list