Skip to content

saving a quartz-plot as pdf

7 messages · Ferdinand, Steve Revilak, Jeff Ryan +3 more

#
hi,

is there a command for exporting the current plot as a pdf-file?

I tried dev.copy(pdf) but it generated a pdf-file I couldn't open  
("broken").


Thanks for any help!
#
Try

   quartz.save("my.pdf", type="pdf");
#
Am 18.01.2009 um 03:04 schrieb Steve Revilak:
I get a syntax error ...

(Release Version 1.23)
#
Try:

dev.copy2pdf(file=)

Jeff
On Sat, Jan 17, 2009 at 8:16 PM, Ferdinand <Ferdinand.Gruebler at gmx.de> wrote:

  
    
#
On Jan 17, 2009, at 9:16 PM, Ferdinand wrote:

            
I don't. Generally I use the File/Save method.

 > quartz.save("my.pdf", type="pdf");
quartz
      2

I also get the same effect with Jeff Ryan's suggestion:
dev.copy2pdf(file="my.pdf")

You are asked in the posting guide to produce the full error message  
and your sysInfo(), and would suggest adding what you get from  
capabilities()
#
On Jan 17, 2009, at 9:16 PM, Ferdinand wrote:

            
I don't believe that - I bet you have a typo there ... Why don't you  
copy/paste the command and the error? You were really sparse with the  
information you provided which is not necessarily helping us to help  
you ...
Mac GUI 1.23 is R 2.6.2 which uses "old" Carbon Quartz, so should  
consider updating R.

Cheers,
Simon
#
Ferdinand,

Another way is through saving it as a pdf file when you select the  
quartz window for printing.

Rob
On Jan 17, 2009, at 4:52 PM, Ferdinand wrote: