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

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Thu Aug 15 08:23:56 CEST 2002


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:

>
> 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.

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

> 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.

Answered above.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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