Re: [R] change lattice panel background color

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Sun 15 Jan 2006 - 04:43:43 EST

On 1/13/06, Waichler, Scott R <Scott.Waichler@pnl.gov> wrote:

>

> I can't find a way to change just the panel background color in lattice.
> I would like NA regions in levelplot() to appear black. I've tried the
> trellis.par.set() stuff, but it it makes the background of the whole
> graphic black.

Use panel.fill in a panel function, e.g. (untested)

panel = function(...) {

    panel.fill(col = "black")
    panel.levelplot(...)
}

-Deepayan



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Jan 15 04:50:49 2006

This archive was generated by hypermail 2.1.8 : Sun 15 Jan 2006 - 06:21:10 EST