arealSubPolygons {hydrosanity}R Documentation

Compute sub-regions closest to each point

Description

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.

Usage

arealSubPolygons(x, y = NULL, IDs = row.names(x), boundary, min.area.pct = 0.5)

Arguments

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.

Details

Voronoi mosaic, AKA Thiessen polygons, AKA Dirichlet tesselation.

Value

An object of class SpatialPolygons with ID slots from the original IDs argument.

Author(s)

Felix Andrews felix@nfrac.org

See Also

voronoi.mosaic, gpc.poly-class, SpatialPolygons

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--    or do  help(data=index)  for the standard data sets.


[Package hydrosanity version 0.8.76 Index]