Hi Mac R users/developers, Do you have any tips on how to export graphical outputs in R on a Mac as line drawings, which can be further processed in e.g. Adobe illustrator or Keynote / Powerpoint? It seems that Quartz only outputs pdf and grid structured images, whereas in R Windows, it is possible to copy a graphical output from the R graphics device as a metafile. Thanks, Olivier Olivier Briet, PhD Epidemiologist
How to copy line drawings in R MAC
6 messages · Olivier Briet, Sean Davis, Simon Urbanek +2 more
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20090313/0ce68c53/attachment.pl>
On Mar 13, 2009, at 9:52 AM, Olivier Briet wrote:
Hi Mac R users/developers, Do you have any tips on how to export graphical outputs in R on a Mac as line drawings, which can be further processed in e.g. Adobe illustrator or Keynote / Powerpoint? It seems that Quartz only outputs pdf and grid structured images, whereas in R Windows, it is possible to copy a graphical output from the R graphics device as a metafile.
PDF supports both vector graphics and bitmaps and is superior to Windows metafiles. Both AI and Keynote can deal with PDF files very well (the former can even edit individual objects in it). Cheers, Simon
You can "print" the Quartz window to the Preview program using the Preview button in the print dialog. Choosing File/ "Save As.." will let you access 12 format options by clicking the Format button/ parameter.
David Winsemius On Mar 13, 2009, at 12:28 PM, Sean Davis wrote: > On Fri, Mar 13, 2009 at 9:52 AM, Olivier Briet <o.briet at gmail.com> > wrote: > >> Hi Mac R users/developers, >> >> Do you have any tips on how to export graphical outputs in R on a Mac >> as line drawings, which can be further processed in e.g. Adobe >> illustrator or Keynote / Powerpoint? >> It seems that Quartz only outputs pdf and grid structured images, >> whereas in R Windows, it is possible to copy a graphical output from >> the R graphics device as a metafile. >> > > You can certainly use pdf(), png(), jpg(), etc. to save your plots. > Is that > what you mean? > > Sean > > [[alternative HTML version deleted]] > > _______________________________________________ > R-SIG-Mac mailing list > R-SIG-Mac at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/r-sig-mac David Winsemius, MD Heritage Laboratories West Hartford, CT
2 days later
Hi Simon, all, thanks for these answers. I did not realize that I could edit pdf vector graphics by opening the pdf in Illustrator. I used to simply paste wmf vector graphics into Powerpoint and then "ungroup" and edit further in Powerpoint. Although Illustrator gives the option to export as wmf, in my version this is faulty, and so I have to finalize the graphic in Illustrator, because I cannot import the graphic as vector into Powerpoint / Keynote. Would you know how else (other than Illustrator) to edit vector graphics from Quartz output? (All other save-options are raster-based). Cheers, Olivier
On 3/13/09, Simon Urbanek <simon.urbanek at r-project.org> wrote:
On Mar 13, 2009, at 9:52 AM, Olivier Briet wrote:
Hi Mac R users/developers, Do you have any tips on how to export graphical outputs in R on a Mac as line drawings, which can be further processed in e.g. Adobe illustrator or Keynote / Powerpoint? It seems that Quartz only outputs pdf and grid structured images, whereas in R Windows, it is possible to copy a graphical output from the R graphics device as a metafile.
PDF supports both vector graphics and bitmaps and is superior to Windows metafiles. Both AI and Keynote can deal with PDF files very well (the former can even edit individual objects in it). Cheers, Simon
Olivier- In my experince AI is a perfect tool to edit/stylise R ouput. Inkscape is an opensource tool supporting advanced vector editing. I would not recommend converting to wmf, it often behaves unpredictable (fontsizes, font embedding, linewidths, ?)! R creates very consistent pdf and postscript output. To my experience the best ones I know of! Especially in terms of post editing. Don't "destroy" it by squeezing it into wmf (emf). AI will by default embend fonts when saved by the application. Try to solve warnings about Zapf Dingbats font, if they appear! For example embed AdobePiStd font. Note, powerpoint will render pdf files on import. Often graphical quality is remarkable reduced. A better way is to import a png file. You can create png from preview.app or AI. Keynote will not rip pdf to screen resolution and keeps figures as they come . Have fun! Roland
Hi Simon, all, thanks for these answers. I did not realize that I could edit pdf vector graphics by opening the pdf in Illustrator. I used to simply paste wmf vector graphics into Powerpoint and then "ungroup" and edit further in Powerpoint. Although Illustrator gives the option to export as wmf, in my version this is faulty, and so I have to finalize the graphic in Illustrator, because I cannot import the graphic as vector into Powerpoint / Keynote. Would you know how else (other than Illustrator) to edit vector graphics from Quartz output? (All other save-options are raster-based). Cheers, Olivier On 3/13/09, Simon Urbanek <simon.urbanek at r-project.org> wrote:
On Mar 13, 2009, at 9:52 AM, Olivier Briet wrote:
Hi Mac R users/developers, Do you have any tips on how to export graphical outputs in R on a Mac as line drawings, which can be further processed in e.g. Adobe illustrator or Keynote / Powerpoint? It seems that Quartz only outputs pdf and grid structured images, whereas in R Windows, it is possible to copy a graphical output from the R graphics device as a metafile.
PDF supports both vector graphics and bitmaps and is superior to Windows metafiles. Both AI and Keynote can deal with PDF files very well (the former can even edit individual objects in it). Cheers, Simon
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac