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:

Thank you

Sebastien

####
library(lattice)

df <- data.frame(a=rep(1:4,4), b=rep(1:4,4), c=rep(1:4,each=4))

settings <- standard.theme()
settings <- modifyList(settings,
                       list(background=list(alpha=1,
                                            col="transparent")))
str(settings)

trellis.device(png,
               file="test.png",
               theme=settings)

myplot<-xyplot(b~a|c, data=df)

print(myplot)

dev.off()

####

______________________________________________
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.

Reply via email to