[R] png output in batch

Deborah Swayne dfs at research.att.com
Thu Oct 26 16:25:51 CEST 2000

On Thu, Oct 26, 2000 at 07:31:54AM +0100, Prof Brian D Ripley wrote:
> There is no way.  png() on Unix depends on having an X server (for the
> fonts, basically).  I would use bitmap(), which does produce postscript
> output and convert, but you can control the resolution.

I can't figure out how to control the resolution and the size
independently using bitmap().  I'm getting something close
to what I want with this combination of arguments:

ps.options(horizontal=F, pointsize=25)
bitmap ("/usr/dfs/WWW/auction/foo.png", width=2, height=2, res=288)

In the browser on my laptop, the resulting plot is about 6 inches
square.  If I drop the resolution to 144, the plot is then about
3 inches square.

Any further wisdom for me?  Is there a better approach to using
cgi for web graphics?  Maybe this just isn't a problem for which
R or S is the best solution.

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