Learn R Programming

⚠️There's a newer version (1.1.2) of this package.Take me there.

nicheROVER (version 1.1.0)

Niche Region and Niche Overlap Metrics for Multidimensional Ecological Niches

Description

Implementation of a probabilistic method to calculate 'nicheROVER' (_niche_ _r_egion and niche _over_lap) metrics using multidimensional niche indicator data (e.g., stable isotopes, environmental variables, etc.). The niche region is defined as the joint probability density function of the multidimensional niche indicators at a user-defined probability alpha (e.g., 95%). Uncertainty is accounted for in a Bayesian framework, and the method can be extended to three or more indicator dimensions. It provides directional estimates of niche overlap, accounts for species-specific distributions in multivariate niche space, and produces unique and consistent bivariate projections of the multivariate niche region. The article by Swanson et al. (Ecology, 2015) provides a detailed description of the methodology. See the package vignette for a worked example using fish stable isotope data.

Copy Link

Version

Install

install.packages('nicheROVER')

Monthly Downloads

359

Version

1.1.0

License

GPL-3

Maintainer

Martin Lysy

Last Published

June 3rd, 2021

Functions in nicheROVER (1.1.0)

niiw.post

Random draws from the posterior distribution with Normal-Independent-Inverse-Wishart (NIIW) prior.
niche.plot

Plot for 2-d projection of niche regions.
niche.par.plot

Plot for niche parameters.
niw.coeffs

Posterior coefficients of the Normal-Inverse-Wishart distribution with its conjugate prior.
niw.mom

Mean and variance of the Normal-Inverse-Wishart distribution.
rniw

Random draws from a Normal-Inverse-Wishart distribution.
rwish

Random draws from a Wishart (or Inverse-Wishart) distribution.
niw.post

Random draws from the posterior distribution with Normal-Inverse-Wishart (NIW) prior.
overlap

Monte Carlo calculation of niche region overlap metrics.
niche.size

Calculate the size of an elliptical niche region.
niche.runif

Uniform sampling from an elliptical niche region.
ellipse

Point coordinates for a 2-D ellipse.
fish

Fish stable isotope dataset.
overlap.plot

Plot the overlap metric.
overlap.unif

Overlap calculation for uniform niche regions.
nicheROVER

(Niche) (R)egion and Niche (Over)lap Metrics for Multidimensional Ecological Niches.