Re: [R] Why the variation when creating .pdf file output for my plots?

2010-06-30 Thread Erik Iverson
Method 3: pdf(file=my_plot.pdf, paper=a4) dev.off() The `pdf` function opens a *new* graphics device, you then send output to the device before calling dev.off(), e.g., pdf(file = my_plot.pdf) plot(1:10, 1:10) dev.off() -yields a .pdf file of 1kb (same plot example) and returns

Re: [R] Why the variation when creating .pdf file output for my plots?

2010-06-30 Thread Karl Brand
Thank you Erik! That works nicely now. The file size in (in kilobytes) is equal to the FileSave AsPDF method. Still curious why the file sizes (in Kb), differ by a factor of ~2 between the two methods: pdf() dev2bitmap(method = pdf) I'm just *assuming* here that file size is inidcative of

Re: [R] Why the variation when creating .pdf file output for my plots?

2010-06-30 Thread Jonathan Christensen
Karl, dev2bitmap runs its output through Ghostscript, and I assume that the difference is somehow due to that. I can't say whether Ghostscript is decreasing the file quality or just doing something clever, though. Jonathan On Wed, Jun 30, 2010 at 10:30 AM, Karl Brand k.br...@erasmusmc.nl