Hi Deepayan, Thank for you reply. I am a little bit confused now. In the one hand, the trellis.device function has lost his bg argument as explained in the Note section of ?trellis.device, but the background info provided by a theme does not seem to impact the background of the device. In the other hand, png has a bg argument that works great but no "theme" capabilities as far as I could see.
Do you see a way to reconcile both sides of the problem? Sebastien ----- Mail Original ----- De: "Deepayan Sarkar" <deepayan.sar...@gmail.com> À: pomc...@free.fr Cc: r-h...@stat.math.ethz.ch Envoyé: Mercredi 5 Août 2009 12h38:30 GMT -05:00 USA/Canada - États de l'Est Objet: Re: [R] Transparency and trellis device On 8/5/09, pomc...@free.fr <pomc...@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: pomc...@free.fr > À: r-h...@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 ______________________________________________ R-help@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.