estKIN: Estimate Kernel Isotope Niche

Description Usage Arguments Value Author(s) Examples

View source: R/estKIN.R

Description

Calculates the 2D kernel for isotopic values at multiple confidence levels. Returns a list of SpatialPolygonsDataFrame, each list item representing the grouping variable (i.e. species).

Usage

1
2
estKIN(data, x, y, group, levels = c(50, 75, 95), scaler = 10,
  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 99)

scaler

numeric value to expand the min/max x and y values. This assists with error given smaller sample sizes. Default value = 10

smallSamp

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

Value

A class rKIN object containing a list of SpatialPolygonsDataFrame, each list item representing the grouping variable.

Author(s)

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

Examples

1
2
3
4
5
6
7
library(rKIN)
data("rodents")
#estimate niche overlap between 2 species using kernel UD
test.kin<- estKIN(data=rodents, x="Ave_C", y="Ave_N", group="Species",
                 levels=c(50, 75, 95), scaler=2)
#determine polygon overlap for all polygons
plotKIN(test.kin, scaler=2, title="Kernel Estimates", xlab="Ave_C", ylab="Ave_N")

rKIN documentation built on May 2, 2019, 2:44 a.m.