Dear ListeRs,

Since I normally produce output by Sweave, I never had to care about pixel
resolution. Now someone asked me for 600dpi tiffs of lattice.

I did not find an easy way to simply scale a tiff-image that looks good in
default display. See example below.

Dieter


library(lattice)

p = xyplot(Sepal.Length + Sepal.Width ~ Petal.Length + Petal.Width |
Species, 
       data = iris)

# looks good, but low resolution
trellis.device("tiff",file="a.tif")
print(p)
dev.off()

# do I really have to scale all fonts to get this right?
trellis.device("tiff",file="a1.tif",res=600,width=6000,height=4000)
print(p)
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