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

Duncan Murdoch murdoch at stats.uwo.ca
Wed Oct 4 19:33:33 CEST 2006


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



More information about the R-help mailing list