[R] R graphs in LaTeX documents?
Michael Grant
mwgrant2001 at yahoo.com
Thu Feb 7 14:25:06 CET 2002
--- Robert Lundqvist <Robert.Lundqvist at ies.luth.se>
wrote:
> 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 ...
Hi Robert,
Perhaps your difficulties lie on the LaTeX side of the
equation. I've used R versions 1.23, 1.31 and now
1.41; gone thru 'mass production' of numerous
postscript graphics using both the menu and coding;
and pulled those graphics into LaTeX (and
Word)directly without a hitch--EXCEPT IN THE
BEGINNING. And those problems were
first-time-using-LaTeX-related.
Assuming I had saved the R graphic as 'ipu238.eps' the
following (edited) has worked for me:
\documentclass[10pt,letterpaper]{report}
...
\usepackage{graphicx}
...
\begin{document}
...as can be seen in Figure \ref{fig:ipu238}. The
confidence bands are wide and ...
\begin{figure}
\begin{center}
\includegraphics[scale=0.9]{ipu238}
\end{center}
\caption{Intervals for plutonium 238 versus europium
154 using all samples.}
\label{fig:ipu238}
\end{figure}
...
\end{document}
FYI, I use TeXnicCenter/MikTeX for the LaTeX. They
work very well together.(Note: LyX on windows is
cygwin based and requires an Xserver, e.g. XFree86.
Might as run Linux to begin with! Hmmm, not a bad
idea, but RWin is getting pretty sweet.)
Regards,
Mike
__________________________________________________
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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