You need to supply both x and y to the identify function. The suprising
thing is that the first call worked.
So try:
> plot(F$x,F$y)
> I=identify(F$x,F$y)
> Fnew=F[I[1]:I[2],]
> plot(Fnew$x,Fnew$y)
> I=identify(Fnew$x,Fnew$y)
Hope this helps,
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of allergen
> Sent: Monday, November 05, 2007 5:50 AM
> To: r-help at r-project.org
> Subject: [R] Identify() : How to set the offset , or a reference
>
>
> Hello,
>
> I try to make several zoom in chosen region.
> So i use identify to indicate in which area to zoom.
> i want o make it several time.
> But once I zoom one time, the identify fonction gives bad results.
>
> There is a short example, when i try to identify in Fnew it
> sems that there is an offset , or a bad reference.
> So the given result is "No point in 0,25inch"
>
> thanks
>
>
> F=read.table.....
> >
> x y
> 1 3
> 2 5
> ....
> 3999 8
> 4000 9
>
> plot(F$x,F$y)
> I=identify(F$x)
> Fnew=F[I[1]:I[2],]
> >Fnew
> x y
> 2000 5
> ...
> 3000 9
>
> plot(Fnew$x,Fnew$y)
> I=identify(Fnew$x)
>
>
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Identify%28%29--%3A-How-to-set-the-offse
> t-%2C-or-a-reference-tf4751411.html#a13586185
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>