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

From: Jens Scheidtmann <JensScheidtmann_at_web.de>
Date: Wed 04 Oct 2006 - 20:52:01 GMT

Anupam Tyagi <AnupTyagi@yahoo.com> writes:

[...]
> What is the best format to save R graphics for inclusion into a
> LaTeX documents?

When using pdflatex use pdf for graphics as reference format. Using ps2pdf or some such may have some problems when it comes to alpha channels and transparency.

[...]
> I will be grateful if someone can share their experience.

Indispensable is having a good editing cycle. I.e. compile the latex, jump to the position where you are editing the file in the preview, double click somewhere in the preview, move to that position in your editor (or at least near that position). As I am not aware of any tools doing this with pdf, you may want to render dvi instead. When rendering DVI, you probably want to generate ps.

My 2c,

Jens



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 Fri Oct 06 04:02:14 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 Thu 05 Oct 2006 - 21:30:07 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.