Skip to content
Prev 5554 / 15076 Next

image() to Rplot.pdf

Paul,
On Jan 20, 2009, at 9:56 , Paul J. Ossenbruggen wrote:

            
Sure, that's easily done using Quartz directly:
quartz.save("foo.tiff",type="tiff")

For a journal you may want to increase the dpi, e.g.:
quartz.save("foo.tiff",type="tiff",dpi=300)

Since Quartz knows that you're generating a bitmap it will snap the  
pixel boundaries for rectangles accordingly.

If you don't want a transparent background, you can use Quartz  
directly to do the drawing and force bg="white":

quartz(file="foo.tiff",type="tiff",dpi=300,bg="white")
# do your plotting here ... (you can also set width/height above see ? 
quartz)
dev.off()

Cheers,
Simon