Re: [R] maptools: Test if point is in polygon

2009-02-06 Thread Monica Pisica
Hi, You may want to check the package sp. There is one function called "point.in.polygo" that might do what you want. Good luck, Monica - >Message: 32 >Date: Thu, 5 Feb 2009 14:51:36 + >From: baptiste auguie >Subject: Re: [R] maptool

Re: [R] maptools: Test if point is in polygon

2009-02-06 Thread Roger Bivand
Renaud Lancelot gmail.com> writes: > > See function pip (point in polygon) in package splancs. > > Renaud > > 2009/2/5 Rainer M Krug gmail.com> > > > On Thu, Feb 5, 2009 at 3:21 PM, Aleksandr Andreev > > gmail.com> wrote: > > > In R's maptools package, is there a built-in function to test i

Re: [R] maptools: Test if point is in polygon

2009-02-05 Thread Renaud Lancelot
See function pip (point in polygon) in package splancs. Renaud 2009/2/5 Rainer M Krug > On Thu, Feb 5, 2009 at 3:21 PM, Aleksandr Andreev > wrote: > > In R's maptools package, is there a built-in function to test if a > > given point is "inside" a given polygon on the map? The map was > > loa

Re: [R] maptools: Test if point is in polygon

2009-02-05 Thread Rainer M Krug
On Thu, Feb 5, 2009 at 3:21 PM, Aleksandr Andreev wrote: > In R's maptools package, is there a built-in function to test if a > given point is "inside" a given polygon on the map? The map was > loaded from an ESRI Shapefile. The point's latitude and longitude are > known. If everything else fail

Re: [R] maptools: Test if point is in polygon

2009-02-05 Thread baptiste auguie
I don't know about the maptools package but one general way to do this would be to compute the convex hull (?chull) of the augmented set of points and test if the point belongs to it. Hope this helps, baptiste On 5 Feb 2009, at 13:21, Aleksandr Andreev wrote: In R's maptools package, i

[R] maptools: Test if point is in polygon

2009-02-05 Thread Aleksandr Andreev
In R's maptools package, is there a built-in function to test if a given point is "inside" a given polygon on the map? The map was loaded from an ESRI Shapefile. The point's latitude and longitude are known. Thank you! Aleks -- Aleksandr Andreev Fulbright Fellow Gradua