I have multiple sets of points (for different years ~20)
I want to generate thiessen polygons for each set of points using r spatial packages.
I know this can be done using GIS but as i want a batch process something in R would be
helpful.
I have multiple sets of points (for different years ~20)
I want to generate thiessen polygons for each set of points using r spatial packages.
I know this can be done using GIS but as i want a batch process something in R would be
helpful.
Same principle as shown by jbaums, but simpler code:
You haven't given us access to your data, but here's an example for points representing cities of the world, using an approach described by Carson Farmer on his blog. Hopefully it'll get you started...
Example 1: Input is a SpatialPointsDataFrame:
Example 2: Input is vectors of x, y coordinates: