[R] R graphs in LaTeX documents?
Thomas Lumley
tlumley at u.washington.edu
Thu Feb 7 17:11:02 CET 2002
On Thu, 7 Feb 2002, Robert Lundqvist wrote:
> Many thanks for all suggestions, and of course, using dev.copy2eps work. At
> least almost. Simple graphs are generated and copied into *.eps files, they
> have been included in the LaTeX document, and in the end I get a nice
> looking document in the DVI previewer (in my case YAP).
>
> Printing doesn't work though. I get a message saying that "..this page
> contains Postscript specials". Is this due to a faulty *.eps file or should
> I look for the root causes in the previewer? Any suggestions?
If you include PostScript files you need to print to a printer that
understands them. Under Unix this is usually automatic. Under Windows you
may need to obtain dvips and ghostscript to create and print PostScript
from your DVI files. I would have expected dvips to be in your TeX
distribution already.
Another possibility is to use pdflatex, which produces Adobe PDF files
instead of DVI. You can include PDF graphs produced by Rs pdf() driver
(and PNG bitmaps). This is what I usually do, since I often need PDF
files either for students or for medical collaborators who can't cope with
PostScript.
-thomas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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