This function calculates the area of the convex hull describing a set of bivariate points, and returns other information useful for plotting the hull.
a vector of x-axis data
a vector of y-axis data
A list of length four comprising:
TAthe area of the convex hull.
hullXthe x-coordinates of the points describing the convex hull.
hullYthe y-coordinates of the points describing the convex hull.
indthe indices of the original data in
form the boundaries of the convex hull.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.