[R] PostScript elocution
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed May 16 14:46:20 CEST 2001
On Wed, 16 May 2001, Jim Lemon wrote:
> I noticed what may be a useful thing while wrestling with StarOffice the other day.
> While SO has saved me many a time by importing and exporting M$Word documents
> flawlessly, it usually barfs on PostScript plots from R, complaining that they are
> an "Unknown graphics format"!
Sure, correct. By default they are in a printing format.
> On long shot, I manually edited the header line by adding " EPSF 2.0" and blow me
> down, it worked! I tried to trace the PostScript header file, but couldn't find
> one, and as it's an internal function, didn't manage to come up with a fix. Is it
> worthwhile providing a fix for the (hopefully) C code? I'd be happy to have a go,
> as it is incredibly useful as far as I'm concerned.
If you ask for EPSF, you get an EPSF header. If you don't, you don't.
The helpful help page says
onefile: logical: if true (the default) allow multiple figures in one
file. If false, generate a file name containing the page
number and give EPSF header and no `DocumentMedia' comment.
...
The postscript produced by R is EPS (Encapsulated PostScript)
compatible, and can be included into other documents, e.g. into
LaTeX, using `\includegraphics{<filename>}'. For use in this way
you will probably want to set `horizontal=FALSE, onefile=FALSE,
paper="special"'.
Now when I wanted this a couple of years ago it was not on the help
page, so there was a reasonable excuse (and anyway then it was not
genuine EPS) ....
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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