convexHull | R Documentation |
convexHull
computes the subset of points which lie on the
convex hull of the set of points specified.
convexHull(x, y, clockwise = TRUE)
x |
A vector of x coordinates. |
y |
A vector of y coordinates of the same lenght as |
clockwise |
If TRUE (the default), the output convex hull is oriented clockwise. Otherwise, it is oriented counter-clockwise. |
A vector indicating the index of the points on the convex hull.
Simon Garnier, garnier@njit.edu
convexHull(rnorm(100), rnorm(100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.