box colours in lattice (was RE: [R] Strip location and grid colour in Lattice)
Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu Jun 5 10:19:59 CEST 2003
If you mean the rectangular boxes surrounding the panels and strips, they
are drawn by grid.rect() and not under the control of lattice.
If so, it is *not* a grid but a series of boxes, and they don't always
align perfectly, as example(xyplot) shows on my screen (and if you
had some space between the plots this would be clearer to you).
You could alter the grid.text calls in print.trellis to change the colour
....
On Thu, 5 Jun 2003, Mulholland, Tom wrote:
> I am not using panel.grid directly. It appears to use the reference.line
> component of the lattice.theme. Since I have tried changing all obvious
> comonents in the lattice.theme (including reference.line) I assume I am
> correct in this assertion.
>
> I probably used the wrong word, but I wasn't sure what else to call it. It
> is the grid around each plot and strip. It dominates the trellis ...(that's
> what I should have called it). How do you change the colour of the trellis?
>
>
> -----Original Message-----
> From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
> Sent: Wednesday, 4 June 2003 6:26 PM
>
> What grid? You put it there, and you can change its colour. It comes from
> calling panel.grid, and arg(panel.grid) will hint to you how to change this.
>
>
>
--
Brian D. Ripley, ripley at 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 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list