chull_area | R Documentation |
Given a set of locations, this function determines the surface area of the convex hull (or envelope) of the set.
chull_area(x, y, geo = FALSE)
chullArea(x, y, geo = FALSE)
x |
A vector of x (or longitude) coordinates. |
y |
A vector of y (or latitude) coordinates. |
geo |
A logical value indicating whether the locations are defined by
geographic coordinates (pairs of longitude/latitude values). If |
A single numeric value corresponding to the surface area of the
convex hull (in square meters if geo
is TRUE
).
Simon Garnier, garnier@njit.edu
is_chull
, chull_perimeter
x <- rnorm(25)
y <- rnorm(25, sd = 3)
chull_area(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.