[R] multiple plot devices

Prof Brian D Ripley ripley at stats.ox.ac.uk
Tue Apr 16 09:17:03 CEST 2002

On Tue, 16 Apr 2002 ozric at web.de wrote:

> Hello,
> sorry but i found no way or help to work
> with multiple graph devices (Rdocs,SearchIndex).

There is a section in `An Introduction to R' on `Multiple graphics
devices', so I don't know what you looked at but that was the most obvious
place to look.

See also

?dev.cur `Control Multiple Devices'

> When is use the function  only the graphic device of the last variable is open.
> How is it possible to let the several plot-device open or save this in a file with different names ?
> (win 2000 - R1.4.1)
> thanks for advance
> & regards,Christian
> normal <- function(x) {
>     par(mfrow=c(2,2))
>     hist(x)
>     boxplot(x)
>     sd <- summary(x)[5] - summary(x)[2]
>     plot(density(x,width=2*sd),xlab="x",ylab="",type="l")
>     qqnorm(x)
>     qqline(x)
>     }
> apply(data,2,normal)

?density will show you better bandwidth selectors than that one, including
the default (and we do suggest you use `bw' not `width').

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