[R] Questions on Inserting R graphs in latex!

Henrik Andersson h.andersson at nioo.knaw.nl
Fri Jan 14 10:18:54 CET 2005


An additional problem separate from it not recognizing the figure 
environment is that I guess you ran pdflatex (to get a .pdf file and not 
a .dvi) and this indeed accepts only files in the formats below.

Try:

pdf(file="c:/myfigure.pdf")
plot(sin(1:10), pch="+")
dev.off()

Xianggui QU wrote:
> Hi,
....
>                                                   
> l.7 ...      \includegraphics[scale=0.9]{myFigure}
>                                                   
> I could not locate the file with any of these extensions:
> .png,.pdf,.jpg,.mps,.tif




More information about the R-help mailing list