is_chull | R Documentation |
Given a set of locations, this function determines which locations belongs to the convex hull (or envelope) of the set.
is_chull(x, y)
isChull(x, y)
x |
A vector of x (or longitude) coordinates. |
y |
A vector of y (or latitude) coordinates. |
A numerical vector of the same length as x
and y
.
0
indicates that the corresponding location is not part of the convex
hull of the set. Values >0
indicates that the corresponding location
is part of the convex hull, and each value corresponds to the order of the
locations along the convex hull polygon.
Simon Garnier, garnier@njit.edu
chull_area
, chull_perimeter
x <- rnorm(25)
y <- rnorm(25, sd = 3)
is_chull(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.