calcConvexHull {PBSmapping} | R Documentation |
Calculates the convex hull for a set of points.
calcConvexHull (xydata)
xydata |
a data frame with columns X and Y
containing the points. |
This routine ignores all columns other than X
and Y
.
PolySet with columns PID
, POS
, X
, and Y
.
addPoints
,
addPolys
,
calcArea
,
calcCentroid
,
calcMidRange
,
calcSummary
,
locateEvents
,
plotMap
,
plotPoints
,
plotPolys
.
#--- 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);