Re: [R-sig-Geo] Fall into which voronoi? (Follow Up)

2007-06-20 Thread Roger Bivand
On Mon, 18 Jun 2007, Kitty Lee wrote: > Just want to follow up from my earlier post This is overlay() in the sp package for SpatialPolygons and SpatialPoints, and you will need to use the deldir package to provide polygons of bounded rather than infinite area - see the thread refered to her

[R-sig-Geo] Fall into which voronoi? (Follow Up)

2007-06-18 Thread Kitty Lee
Just want to follow up from my earlier post Since the voronoi polygon layer and the point layer share the same study area, is there a way to do a 'spatial joint' such that I can find out the points fall into which polygon? And to have a dataset like the following: Caseid xc yc voronoi.pol

[R-sig-Geo] Fall into which voronoi?

2007-06-18 Thread Kitty Lee
Dear R-users, I have a dataset with over 5000 pts and I know their x and y coordinates. Based on the study area, I created 10 random points and used these points to create voronoi to dissect the space. genxy.vm<-voronoi.mosaic(genxy$x, genxy$y, duplicate="remove") genxy.vp<-voronoi.polygons(gen