[R] adding new devices and plots

Erin Hodgess erinm.hodgess at gmail.com
Thu Jul 29 20:15:38 CEST 2010


Dear R People:

I have the following function:

> eplot
function (x)
{
    plot(x)
    z <- locator(2)
    dev.new()
    plot(window(x, start = min(z$x), end = max(z$x)))
}
>

I want to generate a new plot from a subset of the original, but I
want to keep the original plot up.  When I use this, it opens a new
window, but the first device goes blank.

Is there a way around this, please?

Thank you!
Sincerely,
Erin


-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com



More information about the R-help mailing list