Skip to content
Prev 4596 / 15075 Next

quartz.save()

On Mon, 14 Apr 2008, Todd A. Johnson wrote:

            
I don't think so: that does not save the current plot.  You could adapt 
dev.copy2pdf() to come very close (or just use it -- R's pdf device will 
copy well enough unless you need exotic fonts).

I think the changes needed are from

     oc$device <- pdf
     oc$onefile <- FALSE
     if (is.null(oc$paper))
         oc$paper <- "special"
to
     oc$device <- quartz
     oc$type <- "pdf"

but I'm not sitting in front of a Mac.

(Had quartz(type="pdf") been working at feature freeze for 2.7.0 we might 
have made this an option in dev.copy2pdf, but it was broken until 
recently.)