[R] How to save images?

Paulo Justiniano Ribeiro Jr paulojus at est.ufpr.br
Fri Feb 27 17:26:45 CET 2004


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:

> 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.
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>

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




More information about the R-help mailing list