Hi there,

Is it possible to plot in batch mode an R graph to standard output (or to
the "screen," which you would get just a bunch of binary characters)?

(I'm using Windows.)

The motivation is to write some CGI script to display an R plot directly,
without having to write to a temporary file first. That is, to simply do
something this: <img src="MyRPlot.cgi" />

The equivalent all-text-version Perl script would be something like this:

# --------------------------------------------------------------------------
----------------------------------------------------------------------------
----
$Rpath = "C:\\Progra~1\\R\\rw\\bin\\" ;
$Rcmd = $Rpath . "rterm --vanilla --quiet --slave" ;
$Rscript = "sum(1:3)" ;
print `echo $Rscript | $Rcmd` ;
# --------------------------------------------------------------------------
----------------------------------------------------------------------------
----

Which will print

    [1] 6

to the screen (i.e. line number, plus the answer). No temporary files, just
standard input and output. Just wondering if I could do the same with plot.

Thanks.


	[[alternate HTML version deleted]]


