[R] Multi-plot
ripley@stats.ox.ac.uk
ripley at stats.ox.ac.uk
Tue Aug 20 21:25:04 CEST 2002
On Tue, 20 Aug 2002, Ben Bolker wrote:
>
> Create a new graphics window between plots.
> You don't say what operating system you're using: for Unix, x11() is the
> command to create a new window; for Windows, I believe it's windows() (see
> ?Devices).
> Then see ?dev.cur() for information on how you can list, switch between
> graphics windows, etc.
>
> Q to gurus: is there a simple way to get the command for the default
> graphics driver, something like options()$createdevice [options$device is
> useful but "X11" can't quite be turned into x11() without some hacking,
> and I don't know if that hack would work generally]. You can always write
> a little bit of conditional code, but I'm just wondering if there's a
> simple one-liner ...
eval(get(getOption("device"))())
is essentially what the internal code does. I've written that several
times before, and will see if I can find a place to put it in the
online docs. (Ben: Suggestions welcome as to where.)
--
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