[R] eps->jpg

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Dec 8 13:10:09 CET 1999


> Date: Wed, 08 Dec 1999 12:29:20 +0100
> From: ros mathieu <rosm at ufrima.imag.fr>
> 
> is there a way to convert R graphics (eps format) to jpg  from a R
> function ?

If you use dev2bitmap() you can do this (generate eps, convert to bitmap)
within R. Otherwise use a tool such as convert (part of ImageMagick) or
xv, both of which use ghostscript internally, or on Windows use GSView
(again using ghostscript).

I hope that addresses what you want. If not the dev2bitmap function
should provide a good template. If you are producing eps for this,
you do need to set the options on postscript() to get it (as you probably
know, and dev2bitmap shows).

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