calcConvexHull {PBSmapping}R Documentation

Calculate the Convex Hull for a Set of Points

Description

Calculates the convex hull for a set of points.

Usage

calcConvexHull (xydata)

Arguments

xydata a data frame with columns X and Y containing the points.

Details

This routine ignores all columns other than X and Y.

Value

PolySet with columns PID, POS, X, and Y.

See Also

addPoints, addPolys, calcArea, calcCentroid, calcMidRange, calcSummary, locateEvents, plotMap, plotPoints, plotPolys.

Examples

#--- load the data (if using R)
if (!is.null(version$language) && (version$language == "R"))
  data(surveyData)
#--- plot the convex hull, and then plot the points
plotMap(calcConvexHull(surveyData))
addPoints(surveyData);

[Package PBSmapping version 2.09 Index]