The bounding box error is due to the fact that you cannot use pdf image
files with Latex. If you run Latex, you can only import eps or ps plots.
However, you can import pdf plots (as well as jpg, png images) if you use
the PDFlatex command, which converts your tex document directly to pdf.
-Patrick
-----Original Message-----
From: gov2001-l-bounces at
lists.fas.harvard.edu
[mailto:gov2001-l-bounces at
lists.fas.harvard.edu] On Behalf Of Holger Lutz
Kern
Sent: Sunday, February 11, 2007 5:01 PM
To: gov2001-l at
lists.fas.harvard.edu
Subject: Re: [gov2001-l] importing plots from R to LATEX
Gavril,
thanks for alerting us to this problem and providing LaTeX code
that solves it.
Holger
Bilev, Gavril wrote:
After wasting 1 hour on this, I found a solution - use
it to save yourself
some time;
If you're having trouble importing .pdf plots from R into LATEX use .eps
instead:
dev.copy2eps(file="myplot.eps")
and then in LATEX/editor:
\scalebox{0.7}{\includegraphics{myplot}}
assuming you have copied the file to the appropriate directory (where you
.tec file
is);
the example on one of the cheat sheets (Running R, LATEX, VNC FAQ) doesn't
work because the .pdf file doesn't have a bounding box...
_______________________________________________
gov2001-l mailing list
gov2001-l at
lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
--
Holger Lutz Kern
Graduate Student
Department of Government
Cornell University
Institute for Quantitative Social Science
Harvard University
1737 Cambridge Street N350
Cambridge, MA 02138
www.people.cornell.edu/pages/hlk23
_______________________________________________
gov2001-l mailing list
gov2001-l at
lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l