View source: R/siberConvexhull.R
| siberConvexhull | R Documentation |
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)
x |
a vector of x-axis data |
y |
a vector of y-axis data |
A list of length four comprising:
TA the area of the convex hull.
hullX the x-coordinates of the points describing the convex hull.
hullY the y-coordinates of the points describing the convex hull.
ind the indices of the original data in x and y that
form the boundaries of the convex hull.
x <- stats::rnorm(15)
y <- stats::rnorm(15)
siberConvexhull(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.