Dear all, I have a lot plot graphs and i would like to save them. One solution is to use the grab function with xv. But it is tedious.... So is there a R function that can save automatically the result of a plot in a gif or ps or bmp file Thanks Olivier -- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- Olivier MARTIN phone: (33) 04 76 61 53 55 Projet IS2 06 08 67 93 42 INRIA Rhone-Alpes fax : (33) 04 76 61 54 77 655, Av. de l'Europe Montbonnot e-mail:olivier.martin at inrialpes.fr 38334 Saint Ismier cedex -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- -------------- next part -------------- An HTML attachment was scrubbed... URL: https://stat.ethz.ch/pipermail/r-help/attachments/20011001/b94b521a/attachment.html
On Mon, 1 Oct 2001, Olivier Martin wrote:> Dear all, > > I have a lot plot graphs and i would like to save them. > One solution is to use the grab function with xv. > But it is tedious.... > So is there a R function that can save automatically > the result of a plot in a gif or ps or bmp fileOn what platform? Try dev.copy2eps, or on Windows (the only place we use bmp files) savePlot. R does not produce gifs, because of patent claims. -- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
dev.print() dev.copy2eps() dev.copy() GP> Date: Mon, 01 Oct 2001 16:22:46 +0200 > From: Olivier Martin <olivier.martin at inrialpes.fr> > X-Accept-Language: en > Sender: owner-r-help at stat.math.ethz.ch > Precedence: SfS-bulk > Content-Type: multipart/alternative; > boundary="------------AF57D599448FD65783CD0AE5" > Content-Length: 2506 > > > --------------AF57D599448FD65783CD0AE5 > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > > Dear all, > > I have a lot plot graphs and i would like to save them. > One solution is to use the grab function with xv. > But it is tedious.... > So is there a R function that can save automatically > the result of a plot in a gif or ps or bmp file > > Thanks > Olivier > > -- > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > Olivier MARTIN phone: (33) 04 76 61 53 55 > Projet IS2 06 08 67 93 42 > INRIA Rhone-Alpes fax : (33) 04 76 61 54 77 > 655, Av. de l'Europe > Montbonnot e-mail:olivier.martin at inrialpes.fr > 38334 Saint Ismier cedex > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > > > > --------------AF57D599448FD65783CD0AE5 > Content-Type: text/html; charset=us-ascii > Content-Transfer-Encoding: 7bit > > <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> > <html> > Dear all, > <p>I have a lot plot graphs and i would like to save them. > <br>One solution is to use the grab function with xv. > <br>But it is tedious.... > <br>So is there a R function that can save automatically > <br>the result of a plot in a gif or ps or bmp file > <p>Thanks > <br>Olivier > <pre>-- > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > Olivier MARTIN phone: (33) 04 76 61 53 55 > Projet IS2 06 08 67 93 42 > INRIA Rhone-Alpes fax : (33) 04 76 61 54 77 > 655, Av. de l'Europe > Montbonnot e-mail:olivier.martin at inrialpes.fr > 38334 Saint Ismier cedex > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-</pre> > </html> > > --------------AF57D599448FD65783CD0AE5-- > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > 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 > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >-- __________________________________________________ [ ] [ Giovanni Petris GPetris at uark.edu ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (501) 575-6324, 575-8630 (fax) ] [ http://definetti.uark.edu/~gpetris/ ] [__________________________________________________] -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> Date: Mon, 01 Oct 2001 16:22:46 +0200 > From: Olivier Martin <olivier.martin at inrialpes.fr> > Subject: [R] save plot graph > > - --------------AF57D599448FD65783CD0AE5 > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > > Dear all, > > I have a lot plot graphs and i would like to save them. > One solution is to use the grab function with xv. > But it is tedious.... > So is there a R function that can save automatically > the result of a plot in a gif or ps or bmp file > > Thanks > OlivierWhen I want code that works on either Windows or *N*X, I usually use Portable Network Graphics (png) files. Do a "help (png)" for the details. "png" files can be imported into Word documents and displayed with most browsers. Dealing with PostScript is a pain on Windows, "gifs" have intellectual property issues as Dr. Ripley noted, and "bmp" files are *huge*. "wmf" files work great on Windows; if I don't need portability, that's what I use on Windows R. But *N*X R doesn't make "wmf" files yet. -- M. Edward (Ed) Borasky, Chief Scientist, Borasky Research http://www.borasky-research.net http://www.aracnet.com/~znmeb mailto:znmeb at borasky-research.net mailto:znmeb at aracnet.com Q: How do you tell when a pineapple is ready to eat? A: It picks up its knife and fork. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._