powered by
convexHull computes the subset of points which lie on the convex hull of the set of points specified.
convexHull
convexHull(x, y, clockwise = TRUE)
A vector of x coordinates.
A vector of y coordinates of the same lenght as x.
x
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.
# NOT RUN { convexHull(rnorm(100), rnorm(100)) # }
Run the code above in your browser using DataLab