Learn R Programming

subniche (version 1.6)

convexhull: Calculate Convex Hull

Description

Internal function to calculate 2D convex hull coordinates and area. This function replaces the dependency on SIBER::siberConvexhull.

Usage

convexhull(x, y)

Value

A list containing:

TA

Total area of the convex hull

x

x-coordinates of hull vertices

y

y-coordinates of hull vertices

xcoords

x-coordinates of hull vertices (alternative name for compatibility)

ycoords

y-coordinates of hull vertices (alternative name for compatibility)

samples

Row names of points on the hull

Arguments

x

numeric vector of x-coordinates

y

numeric vector of y-coordinates