[R] R graphs in LaTeX documents?

vito muggeo vito.muggeo at giustizia.it
Thu Feb 7 12:54:59 CET 2002


In general it is not difficult inserti .eps graphics in LaTeX
For instance:
1)Do any graphic with postscript() or export it by File|Save as| postscript:

2) in your document put for instance
\usepackage{graphicx}
....
\includegraphics*[width=\textwidth]{graph.eps}

cheers,
vito

----- Original Message -----
From: "Robert Lundqvist" <Robert.Lundqvist at ies.luth.se>
To: "'r-help at lists.R-project.org'" <r-help at stat.math.ethz.ch>
Sent: Thursday, February 07, 2002 9:11 AM
Subject: [R] R graphs in LaTeX documents?


> I have tried to find a neat way to include graphs from R in LaTeX
documents,
> but have not succeeded (I work with a WinEdt/MikTeX combination). The two
> roads I have stumbled along so far are the following:
>
> *Generate postscript files and convert them into EPS files by means of
> GhostScript or other not so straightforward tools.
>
> *Generate pictex files and include these.
>
> None of these solutions have worked so far. I haven't spent so much time
> trying to find out what goes wrong, but since there might both LaTeX gurus
> and R wizards among you, I simply thought it would be better to lean on
that
> expertize first. Any suggestions about how to achieve what really should
be
> a simple task?
>
> --robert
> ****************
> Robert Lundqvist
> Dept of Quality Technology & Statistics
> Lulea University of Technology
> Sweden
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-.-
> 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
>
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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