Re: Creating gif files using R

About this list Date view Thread view Subject view Author view Other groups

Subject: Re: Creating gif files using R
From: Prof Brian Ripley (
Date: Thu 28 Oct 1999 - 22:32:37 EST

Message-Id: <>

> Date: Thu, 28 Oct 1999 08:19:44 -0400
> From: Dennis Wolf <>
> To:
> 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,        
Professor of Applied Statistics,
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 Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:09 EST