[R] Transparency and trellis device

Deepayan Sarkar deepayan.sarkar at gmail.com
Wed Aug 5 18:38:30 CEST 2009


On 8/5/09, pomchip at free.fr <pomchip at free.fr> wrote:
> Just replying to bring back some attention on my post, which might have slept
> through on Saturday.
>
>  Thank you for your help.
>
>
>  ----- Mail Original -----
>  De: pomchip at free.fr
>  À: r-help at stat.math.ethz.ch
>  Envoyé: Samedi 1 Août 2009 15h48:24 GMT -05:00 USA/Canada - États de l'Est
>  Objet: Transparency and trellis device
>
>
>  Dear R-users,
>
>  I am trying to produce trellis (png, or jpeg) graphs with transparent background, but
>  I cannot manage to make that happen. I tried to play around with themes but to no
>  avail. Any advise on the following example will be greatly appreciated:

This has nothing to do with trellis, your png device must be set up
with a transparent canvas when it is started. See the second paragraph
in the "Details" section of ?png, but basically

png("test.png", bg = "transparent")

-Deepayan




More information about the R-help mailing list