arealSubPolygons {hydrosanity} | R Documentation |
Compute the Voronoi mosaic of a set of points, and intersect it with a given polygon. This gives the sub-regions of the polygon for which each point is the closest.
arealSubPolygons(x, y = NULL, IDs = row.names(x), boundary, min.area.pct = 0.5)
x |
x coordinate of points, or a list containing x and y . |
y |
y coordinate of points. |
IDs |
identification strings for each point. |
boundary |
polygon coordinates (coerced to "gpc.poly" class). |
min.area.pct |
minimum percentage area of the polygon to be allocated to any one site. Sites which would have less area than this will be excluded. |
Voronoi mosaic, AKA Thiessen polygons, AKA Dirichlet tesselation.
An object of class SpatialPolygons
with ID slots from the original IDs
argument.
Felix Andrews felix@nfrac.org
voronoi.mosaic
, gpc.poly-class
, SpatialPolygons
##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets.