Function produces the Convex Hull of the given geometry, the smallest convex polygon that contains all subgeometries
Usage
gConvexHull(spgeom, byid=FALSE, id = NULL)
Arguments
spgeom
sp object as defined in package sp
byid
Logical determining if the function should be applied across subgeometries (TRUE) or the entire object (FALSE)
id
Character vector defining id labels for the resulting geometries, if unspecified returned geometries will be labeled based on their parent geometries' labels.
Details
Returns the convex hull as a SpatialPolygons object.