r-help.20.trevva at spamgourmet.com
2009-Jun-29 09:23 UTC
[R] Lattice and high-resolution tiffs
Hi, I am trying to produce high-resolution (600dpi+) TIFF figures for use in a publication. Everything seems to work well when using the "normal" R-graphics and the relative text size obtained is independent of the output resolution. However, when I try and make lattice plots, the relative size of the text labels changes when I adjust the resolution - they become extremely small at high resolution. Some sample code is attached below - as you will see, the text in the low resolution plot is as expected, whilst that in the high-resolution is there, but very very small. I'm running R 2.9.1 on Windows - R.Version() info is contained at the very bottom. Any ideas? Cheers, Mark Sample code ----------- Depth <- equal.count(quakes$depth, number=8, overlap=.1) p<- xyplot(lat ~ long | Depth, data = quakes) tiff("Low res plot.tiff",width=155/25.4,height=155/25.4,units="in",res=72,pointsize=12,compression="none") print(p) dev.off() tiff("High res plot.tiff",width=155/25.4,height=155/25.4,units="in",res=600,pointsize=12,compression="none") print(p) dev.off() R.version() info ----------------> > R.Version()$platform [1] "i386-pc-mingw32" $arch [1] "i386" $os [1] "mingw32" $system [1] "i386, mingw32" $status [1] "" $major [1] "2" $minor [1] "9.1" $year [1] "2009" $month [1] "06" $day [1] "26" $`svn rev` [1] "48839" $language [1] "R" $version.string [1] "R version 2.9.1 (2009-06-26)">
r-help.20.trevva wrote:> > I am trying to produce high-resolution (600dpi+) TIFF figures for use > in a publication. Everything seems to work well when using the > "normal" R-graphics and the relative text size obtained is independent > of the output resolution. However, when I try and make lattice plots, > the relative size of the text labels changes when I adjust the > resolution - they become extremely small at high resolution. Some > sample code is attached below - as you will see, the text in the low > resolution plot is as expected, whilst that in the high-resolution is > there, but very very small. >This feature has driven me mad several times, I use a radical approach now: Always create ps output only, and use Ghostscript to do the conversion for publication (if they need tiff, nowadays pdf is much more convenient). And is you have troubles figuring out the right command line syntax: try the utility Ghostfriend (Windows only). Dieter -- View this message in context: http://www.nabble.com/Lattice-and-high-resolution-tiffs-tp24250953p24252772.html Sent from the R help mailing list archive at Nabble.com.