[Rd] Saving a plot in R-LINUX
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Jan 13 03:10:01 CET 2006
That does not save the current plot though, and dev.copy() and
dev.print() can do so. They _are_ in the manual Dirk pointed you at.
Windows versions of R have other options, e.g. savePlot() and menu items
to save the plot, and my guess is that is what
'Augusto.Sanabria at ga.gov.au' has seen.
I don't see what this has to do with this list rather than R-help, though.
On Thu, 12 Jan 2006, Dirk Eddelbuettel wrote:
>
> On 13 January 2006 at 11:02, Augusto.Sanabria at ga.gov.au wrote:
> | Is there any way to save a plot produced by
> | R in a LINUX (Debian) machine?
>
> It is the same on every platform and ...
>
> | The window opened by R to put the plot in,
> | does not give any option to save it (there
> | are options to move, close, minimise it, etc.
Those `options' are from your X11 Window Manager, not from R.
> | but not to save it). How do you do that?
>
> ... explained in section 12.6 of the fine 'R Introduction' manual available
> in Debian in each one of the packages
>
> r-doc-info
> r-doc-html
> r-doc-pdf
>
> for your choice of format to read.
>
> Short form:
>
>> pdf("/tmp/foo.pdf")
>> plot(x, y)
>> dev.off()
>
> Don't forget the dev.off(). And do read the manual, section 12.6, also on the
> web at eg http://cran.r-project.org/doc/manuals/R-intro.html#Graphics
>
> Dirk
>
> --
> Hell, there are no rules here - we're trying to accomplish something.
> -- Thomas A. Edison
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>
--
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 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-devel
mailing list