From Prof Brian Ripley <ripley@stats.ox.ac.uk>  Thu Oct 28 13:32:37 1999
From: Prof Brian Ripley <ripley@stats.ox.ac.uk> (Prof Brian Ripley)
Date: Thu, 28 Oct 1999 13:32:37 +0100 (BST)
Subject: Creating gif files using R
Message-ID: <199910281232.NAA16471@toucan.stats.ox.ac.uk>


> Date: Thu, 28 Oct 1999 08:19:44 -0400
> From: Dennis Wolf <qed@ornl.gov>
> To: r-devel@stat.math.ethz.ch
> Subject: Creating gif files using R
> 
> Greetings,
>     I am a new user of R but a long time fan of S (Splus) and have
> installed R version 0.65.1 on a
> Windows NT machine. I would like to save plots as gif files and have
> been using savePlot()
> with some success. I found that savePlot would not work without
> modification, namely
> decrementing the device by 1 before calling the internal routine that
> does the conversion. 

I will look into this. It did work as advertised when it was released,
but something may have changed en route to rw0651 (for example
a correction may have got lost).

> Once
> that change was made it worked as advertised. I am wondering now whether
> I could generate
> the gif files in a batch job. 

You can call the windows() device and then savePlot() from a batch job.

> I am wanting to do a web-based analysis
> that includes a call to
> R which would return a gif file for display in a browser. Is this
> possible directly with R?

>From NEWS for 0.65.1:

    o   Experimental function dev2bitmap() to copy to a bitmap graphics format.

It won't do gif unless your version of ghostscript will, but it will do
png and jpeg.


-- 
Brian D. Ripley,                  ripley@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-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Creating gif files using R
Prof Brian Ripley