[R] R Graphics into Latex‏

Marc Schwartz marc_schwartz at me.com
Thu Feb 25 01:36:38 CET 2010


epsfig is obsolete and has been replaced by graphicx, which Lars is using....

  http://www.ctan.org/tex-archive/help/Catalogue/entries/epsfig.html

Regards,

Marc Schwartz

On Feb 24, 2010, at 6:28 PM, Saeed Abu Nimeh wrote:

> Use \usepackage{epsfig} after your \documentclass. Then make sure to
> run LaTex not PDFLaTex
> 
> On Wed, Feb 24, 2010 at 3:29 PM, Lars Bishop <lars52r at gmail.com> wrote:
>> Hi,
>> 
>> I'm new in Latex and I'm trying to include an R chart into a Latex document.
>> 
>> This is what I'm doing:
>> 
>> 1) In R: save the chart as a a Postcript in a folder C:/xxx/Density.eps
>> 
>> 2) In Latex (using TexWorks on windows xp) :
>> 
>> In the preambule:
>> 
>> \documentclass[11pt]{article}
>> \usepackage{graphicx}
>> \begin{document}
>> 
>> blah..blah…blah
>> 
>> \begin{figure}
>> \centering
>> \includegraphics{C:/xxx/Density.eps}
>> \label{fig:Density}
>> \end{figure}
>> 
>> --This is the Error Message I'm getting:
>> 
>> LaTeX Warning: File `R:/MarsTH/Studies/Misc/LIA QA/R/Density.eps' not found
>> on
>> 
>> input line 26.
>> 
>> ! LaTeX Error: Unknown graphics extension: .eps.
>> 
>> See the LaTeX manual or LaTeX Companion for explanation.
>> 
>> Type H <return> for immediate help.
>> 
>> I'll appreciate your help.
>> Thanks in advance,
>> 
>> Lars.



More information about the R-help mailing list