[R] R and LaTeX

Ko-Kang Kevin Wang Kevin.Wang at maths.anu.edu.au
Sun Dec 10 06:11:27 CET 2006


Hi David,

You can export the graphs in (encapsulated) postscript format, or in 
PDF/PNG/JPEG format.  The following functions may be helpful:
   postscript()
   png()
   pdf()

You may also want to check out Sweave 
(http://www.ci.tuwien.ac.at/~leisch/Sweave/), it allows you to integrate 
LaTeX and R neatly.

Cheers,

Kevin

David Kaplan wrote:
> Hi all,
> 
> I have started using LaTeX for writing papers and I have heard that R 
> works well with LaTeX.  I'm specifically interested in how I can have 
> LaTeX read in R generated graphics - for example graphs formed by 
> matplot, or other such  processes.  Does anyone out there use LaTeX and 
> can point me in the right direction?
> 
> Thanks
> 
> David
> 
> 
> 


-- 
Ko-Kang Kevin Wang
Ph (H): +61-2-612 57471
Ph (M): +61-40-4518301
http://wwwmaths.anu.edu.au/~wangk/personal/




More information about the R-help mailing list