Skip to content

How to run R to generate graphics (jpeg) files dynamically ?

2 messages · Helena Shevchuk, Brian Ripley

#
Hello.
I am getting started with R system and I have a question:

I'd like to use R system to generate some graphics (jpeg) files dynamically 
from
command line or perl script (like: > Rgui -input_r_file <file>.r 
-output_jpeg_file <file>.jpeg)

1) How should I invoke R to read the data from external file.
2) How should I invoke R to run statements from external *.r file.
3) How should I invoke R to save processed data as jpeg file.

Thanks a lot.
Helena.





_________________________________________________________________


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Please read the rw-FAQ Q2.9.  You want to use rterm --no-save < input.R
and to open a jpeg() device in input.R.  You cannot use Rgui.

The answer here depends on the platform in use: you are using Windows, and
neglected to tell us.
On Wed, 14 Aug 2002, Helena Shevchuk wrote:

            
There's a whole R manual on that: see the Help menu in Rgui.
Answered above.