[R] R graphs in LaTeX documents?

Henrik Bengtsson hb at maths.lth.se
Thu Feb 7 15:56:39 CET 2002


Since modern computers are so fast the convertion from dvi to ps does only
take a second or two and this basically makes DVI priviewers obsolete.
Therefore, I always "skip" the DVI step and immediately go and generate a 
postscipt file using 'dvips' and then view it with GSview/Ghostscript.
GSview is available on most Unix systems ('gview' and/or 'gv') and it does
also exist for Win32 system. See

   http://www.cs.wisc.edu/~ghost/gsview/

If you are using a Win32 system and need to install GSView/Ghostview it is
useful to know that you should first install Ghostview, which is the
postscript engine and then you install GSView, which makes use of
Ghostview internally. You can check if you have Ghostview installed by
typing 'gs -v' at the command prompt. If you have a version older than
6.50 I recommend that you get an update (better PDF results).

You can easily print any postscript document to a postscript printer or to
a Windows printer via GSview. (GSview also views PDF's). With the
ghostview package comes nice things as 'ps2pdf' for converting postscript
documents to PDF (online version can be tried at http://www.ps2pdf.com).

It is easy when you, but sometimes hard find out yourself ;)

Henrik Bengtsson

Dept. of Mathematical Statistics @ Centre for Mathematical Sciences 
Lund Institute of Technology/Lund University, Sweden (+2h UTC)
Office: P316, +46 46 222 9611 (phone), +46 46 222 4623 (fax)
h b @ m a t h s . l t h . s e
http://www.maths.lth.se/matstat/staff/hb/



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?
> 
> --robert
> ****************
> Robert Lundqvist
> Dept of Quality Technology & Statistics
> Lulea University of Technology
> Sweden
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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