estEllipse: Estimate Bivariate Normal Ellipse Isotope Niche

View source: R/estEllipse.R

estEllipseR Documentation

Estimate Bivariate Normal Ellipse Isotope Niche

Description

Calculates the Bivariate Normal Ellipse Polygon for isotopic values at multiple confidence levels. Returns a list of sf data frames, each list item representing the grouping variable (i.e. species).

Usage

estEllipse(data, x, y, group, levels = c(50, 75, 95), smallSamp = FALSE)

Arguments

data

data.frame object containing columns of isotopic values and grouping variables

x

character giving the column name of the x coordinates

y

character giving the column name of the y coordinates

group

character giving the column name of the grouping variable (i.e. species)

levels

Numeric vector of desired percent levels (e.g. c(10, 50, 90). Should not be less than 1 or greater than 100)

smallSamp

logical value indicating whether to override minimum number of samples. Currently 10 samples are required.

Value

A list of sf data frames, each list item representing the grouping variable.

Author(s)

Shannon E. Albeke, Wyoming Geographic Information Science Center, University of Wyoming

Examples

library(rKIN)
data("rodents")
#estimate niche overlap between 2 species using bivariate ellipse
test.elp<- estEllipse(data=rodents, x="Ave_C", y="Ave_N", group="Species",
                     levels=c(50, 75, 95))
#determine polygon overlap for all polygons
plotKIN(test.elp, scaler=2, title="Ellipse Estimates", xlab="Ave_C", ylab="Ave_N")

rKIN documentation built on Oct. 3, 2023, 1:06 a.m.