[R] R graphs in LaTeX documents?

Till Baumgaertel till.baumgaertel at epost.de
Thu Feb 7 13:08:46 CET 2002


since you are a windows-user: did you consider producing pdf? you don't only get files 
you can print as good as postscript but also the advantage of an easy-to-share file-
format.

for me (using TeXnicCenter as Latex-shell for windows) this solution was the easiest 
one! at the end of ths message you'll find a latex-file which shows how to include an 
pdf-image (in R produced with file->save as->pdf)

also, i highly recommend having a look to TEXNICCENTER! nicer than any other 
latex-shell for windows and also free.
(http://www.toolscenter.org/products/texniccenter/) 

cu
till

%## begin of latex-file
\documentclass[a4paper,12pt]{report}
\usepackage[latin1]{inputenc}

\usepackage[pdftex]{graphicx}

\begin{document}

\DeclareGraphicsExtensions{.jpg,.pdf,.mps,.png}

\pdfpkresolution=1200
\pdfimageresolution=1200

\immediate
Here is your R-Graphic:

\pdfximage width 12cm {map.pdf}
\pdfrefximage 1


\end{document}
%## end of latex-file
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list