Skip to content
Prev 9637 / 15075 Next

Saving or copying graphics from Quartz returns empty file

On 13-01-25 10:59 AM, Heather CHAPMAN wrote:
I don't know the cause of the problem you're seeing, but I generally 
recommend to people that they generate graphs in the final format, 
rather than saving them from some other format.

In your case, that would mean working out the code to make your plot 
look good on screen, then redo it all directly to the pdf device, by 
simply wrapping the code in

pdf(file="foo.pdf")
  ... your code to draw the plot ...
dev.off()

This is preferable because the graphics system makes some choices 
(spacing, etc.) based on the characteristics of the output device; if 
you copy from a screen device to a print device, those
choices may be different.

Duncan Murdoch