[R] png output in batch

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Oct 26 08:10:33 CEST 2000

Deborah Swayne wrote:
> I'm trying to use R in a cgi script to produce graphics
> files in png format, and I'm having a problem.
> My shell command line looks like this:
>   R </usr/dfs/auction/eligibility.R --no-save  >/tmp/R.out
> and the line in the R script looks like this:
>  png ("foo.png", pointsize=18)
> If I run outside the cgi context, it runs great.  When
> run as in a cgi script, I get this error message:
> Error in X11(paste("png::", filename, sep = ""), width, height, pointsize,  :
>         unable to start device PNG
> Is there any way to trick this command into doing what I want?
> I can alternatively produce postscript output, and then
> convert to png, but I find the resolution disappointing.
> (I'm using unix.)
> Debby

I think bitmap() is a better solution. It also produces png-files.

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