[R] non-interactive R usage...
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Sat Oct 6 10:44:28 CEST 2001
On Fri, 5 Oct 2001, Andrew Schuh wrote:
> One way to get these formats (pngs,gifs,jpegs, etc) is to generate a postscript
> file under a BATCH and then use some of the unix tools to convert to
> PPN(PNM?). Then one can use the PPN(PNM?)TOPNG type programs to further
> convert to PNGs, GIFs, etc. This is how Banfield generates his 'on the fly'
> images. The only problem I have found with it is that the image quality is not
> very good. I have messed around with the compression arguments to these
> programs too with no luck. I'm not sure at what point(s) the image quality
> drops. If anyone has any ideas of how to get around this I would be glad to
> hear from them.
1) Look at R's bitmap() device, which postdates Rcgi etc.
2) jpeg() is not available in BATCH mode on Unix, but it is on Windows
(at least on a workstation: I have no motivation to try it on a Windows
Server but suspect it may fail for permissions reasons).
3) If you are running on a Unix workstation and are logged it at the
console the using R --no-save < infile > outfile enables you to use
jpeg(). Using R BATCH deliberately disables this, since those conditions
are often not met in batch use.
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