Skip to content

How to save images?

5 messages · Susan Lin, Pedro Rodrigues, Paulo Justiniano Ribeiro Jr +2 more

#
After I use function plot() to get an image, how can I
save the image or export it to .gif or other digital
formats?


Thanks a lot.
#
Maybe you could just PrintScreen or use the pdf() function which uses
one or several pdf files instead of the default graphical device.
#
Try this:

jpeg("file1.jpg")
plot(rnorm(20))
dev.off()

and check the jpg file created by this.
Also, check help files:
?jpeg
?postscript
?png
On Fri, 27 Feb 2004, Susan Lin wrote:

            
Paulo Justiniano Ribeiro Jr
Departamento de Estat?stica
Universidade Federal do Paran?
Caixa Postal 19.081
CEP 81.531-990
Curitiba, PR  -  Brasil
Tel: (+55) 41 361 3471
Fax: (+55) 41 361 3141
e-mail: pj at est.ufpr.br
http://www.est.ufpr.br/~paulojus
#
On Fri, Feb 27, 2004 at 08:05:10AM -0800, Susan Lin wrote:

            
?device

--
WBR,
Timur
#
Try the FAQ
http://cran.r-project.org/faqs.html
Or one of the manuals
http://cran.r-project.org/faqs.html
But first read the posting guide
http://www.R-project.org/posting-guide.html