View source: R/utils-spherical.R
chullsphere | R Documentation |
This function calculates a possible implementation of the spherical convex hull.
chullsphere(
data,
center = c(0, 0, 0),
radius = authRadius,
param = 200,
strict = TRUE
)
data |
( |
center |
( |
radius |
( |
param |
( |
strict |
( |
With the method centroidprojection
the function calls the surfacecentroid
function to get the a reference point from the shape. Then all the points are 'projected'
close to this point using the great circles linking them to the reference point.
Each such great circle will be devided to an equal number of points and the closest
will replace the original point coordinates in the convex hull algorithm implemented in chull
.
The indices of the data points forming the convex hull as a (numeric
) vector.
# generate some random points
allData <- rpsphere(1000)
# select only a subset
points<-allData[allData[,1]>3000,]
chullsphere(points)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.