Re: [R] R Graphics: Saving PDF and other formats from Windows Graphic Device for LaTeX

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Wed 04 Oct 2006 - 17:33:33 GMT

On 10/4/2006 1:11 PM, Anupam Tyagi wrote:
> Hello, I can't seem to save (or find the default location) when I use the Window
> Graphic Device's pull down menu. It does not seem to save to the directory I
> have set using "setwd(...)". How do I make the pull down menu's work?

If you want the best quality results, don't use the Save menu at all. Instead, write directly to a graphics device like pdf().
>
> What is the best format to save R graphics for inclusion into a LaTeX documents?
> I will use PdfTex, or LaTeX -> PS -> PsToPdf to generate the final PDF file.
> Which is likely to give the best graphics quality in the final PDF document?
> The final graphs will be about 3x3 inch (fit in a column in two-column format).
> I will be grateful if someone can share their experience.

The postscript and pdf formats both give good results. Depending on your Latex setup, sometimes only one or the other will be supported.

Duncan Murdoch



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu Oct 05 03:37:33 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 04 Oct 2006 - 18:30:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.