[R] Lattice graph tweaking

Wallis, David david.wallis08 at imperial.ac.uk
Tue Aug 25 17:09:15 CEST 2009


That worked.

However, is it possible to single out specific boxes and change their colour? I want the four graph headers in 
the top right of the trellice to be different colour to the rest.

Thanks very much
From: Sundar Dorai-Raj [sdorairaj at gmail.com]
Sent: Tuesday, August 25, 2009 3:19 PM
To: Wallis, David
Cc: silwood-r; r-help at r-project.org
Subject: Re: [R] Lattice graph tweaking

A reproducible example would be nice.

Try grid = FALSE for the first question, though I'm unaware which
lattice plot you are using where the default is TRUE. So I can't
guarantee that will even work.

For your second question, add

par.settings = list(strip.background = list(col = "white"))

to your call (e.g. xyplot(..., par.settings = ...)).

To see what other parameters you can set in par.settings, try:




On Tue, Aug 25, 2009 at 6:14 AM, Wallis,
David<david.wallis08 at imperial.ac.uk> wrote:
> To: silwood-r
> Subject: Removing lattice graph gridlines and editing label box colour
> Hi,
> Is it possible to remove the background gridlines from a lattice graph (ie graph made up of multiple individual graphs with annoying blue grid in the backgroun)?
> Also, Is it possible to change the colour of the individual graph label boxes? - ie the default pink boxes above the individual graphs
> Thanks
>        [[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> 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