[R] exporting plots
Roger Peng
rpeng at stat.ucla.edu
Wed Jan 23 06:07:24 CET 2002
Try running
> postscript("myfile.ps")
> [ comands for constructing plot ]
...
> dev.off()
This will create a postscript file. Depending on your capabilities, you
may also be able to create jpeg's, png's or pdf's. You can check this
with
> capabilities()
Another useful function you may want to look up is dev.off(), which can be
used /after/ a plot has been constructed.
-roger
_______________________________
UCLA Department of Statistics
rpeng at stat.ucla.edu
http://www.stat.ucla.edu/~rpeng
On Tue, 22 Jan 2002, Aaron Solochek wrote:
> I'm running R (latest) on linux, using gnome. I was wondering how
> export the plots to an image file of sort sort. I can't find anything
> obvious in the documentation.
>
> Thanks in advace. Please CC me any replies, as I'm not subscribed to
> the list.
>
> -Aaron
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list