[R] transparent backgound in lattice plots
deepayan.sarkar at gmail.com
Sat Sep 10 03:59:52 CEST 2005
On 9/9/05, Jeff D. Hamann <jeff.hamann at forestinformatics.com> wrote:
> I couldn't find this is in the FAQs or in the R archives and I've poked
> around the lattice package manual, but...
> I've been trying to figure out how to generate graphics files with a
> transparent background with the lattice package. The code to generate the
> levelplot is fine and I can produce a simple png file with a transparent
> background just fine, but I'm not sure how to generate a png of a lattice
> plot with a transparent backgound.
The short answer is
trellis.par.set(background = list(col = "transparent"))
but see ?trellis.device for a better answer.
More information about the R-help