Displaying 2 results from an estimated 2 matches for "outplot".
2000 Aug 12
1
Batch Execution of R
...call an R method from Linux or Win32 systems and
send the output to a file. I would like to implement R as part of an
online client-server application for a geographically spaced engineering
team an would like to know how to run R like this:
jdf at vertigo$ R -infile="infile.R" -o="outplot.png"
where infile.R is a source script and
outplot.png is a graphic produced by the script.
Following these steps I plan to interface with CGI scripts with canned
plotting routines for the analysis of standard sets of engineering data.
Thanks!
John Funk
301 757-5316
-.-.-.-.-.-.-.-.-.-.-....
2005 Jun 03
3
plots from batchfile on windows
...ile "test.r" which only contains:
x <- 1:10;
y <- sample( 10 )
plot( x, y )
Now I tried the following (but nothing worked):
a) "R --vanilla < test.r" in the cmd window, => that doesn't give me a plot
b) the same, but I added "bitmap(file="outplot.png")" in the
scriptfile => Here I get an error that gswin32c.exe was not found.
(Maybe I need to install ghostscript???)
c) some attempts with Rgui.exe => I didn't arrive to pass a command argument.
It would be nice, to get some hints, how this could be done. I did
search the...