Skip to content

image() to Rplot.pdf

3 messages · Paul Ossenbruggen, Simon Urbanek, Brian Ripley

#
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
#
On Tue, 20 Jan 2009, Paul J. Ossenbruggen wrote:

            
Why?  R has several tiff() devices, so why are you shunning them?
Not a good idea.  Use ghostscript if you must, via bitmap() (and make 
sure antialiasing is off there).
Hmm, what is 'Scottish' about it?