Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

siberConvexhull

Calculate metrics and plotting information for convex hulls


Description

This function calculates the area of the convex hull describing a set of bivariate points, and returns other information useful for plotting the hull.

Usage

siberConvexhull(x, y)

Arguments

x

a vector of x-axis data

y

a vector of y-axis data

Value

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 x and y that form the boundaries of the convex hull.

Examples

x <- stats::rnorm(15)
y <- stats::rnorm(15)
siberConvexhull(x, y)

SIBER

Stable Isotope Bayesian Ellipses in R

v2.1.6
GPL (>= 2)
Authors
Andrew Jackson and Andrew Parnell
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.