[R] Exporting Charts or Graphs

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Thu Oct 10 08:39:59 CEST 2002


On Wed, 9 Oct 2002, Jess Balint wrote:

> Hello all, I am fairly new to R and hope not to be a bother. I have used the R-GUI a small amount under Microsoft Windows0S. I recall the ability to export created charts and graphs to JPEG or other various image formats. How can I do this in the UNIX CLI version? Thank you.

There are jpeg(), png() and bitmap() devices and the dev2bitmap() function
under Unix versions of R, although they all require additional software at
the time R is built or is run.  The simplest way usually is to re-plot the
graph after opening a jpeg (etc) device, then call dev.off().

> Also, I have receiveder the following error after installing a package via CRAN. How would I fix this? Thank you.

Call install.packages correctly with two arguments: see its help page.
install.packages("RMySQL", .Library) is probably what you wanted.

>
> Jess
>
> Warning message:
> argument `lib' is missing: using /usr/local/R/lib/R/library in: install.packages("RMySQL")

-- 
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list