On 07/30/2010 04:15 AM, Erin Hodgess wrote:
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.

Hi Erin,
Maybe you want something like zoomInPlot (plotrix).

Jim

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to