powered by
This function calculates the area of the convex hull describing a set of bivariate points, and returns other information useful for plotting the hull.
siberConvexhull(x, y)
A list of length four comprising:
TA the area of the convex hull.
TA
hullX the x-coordinates of the points describing the convex hull.
hullX
hullY the y-coordinates of the points describing the convex hull.
hullY
ind the indices of the original data in x and y that form the boundaries of the convex hull.
ind
x
y
a vector of x-axis data
a vector of y-axis data
x <- stats::rnorm(15) y <- stats::rnorm(15) siberConvexhull(x, y)
Run the code above in your browser using DataLab