niche_overlap: Niche Overlap

View source: R/niche_overlap.R

niche_overlapR Documentation

Niche Overlap

Description

Estimates the proportion of niche overlap between two niche objects of class NINA. The function uses the Schoener's D metric with an optional implementation that weights niche differences in base to the proximity to the niche centroid of the first argument.

Usage

niche_overlap(
  x,
  y,
  cor = F,
  centroid.w = F,
  type = "unimodal",
  method = "median",
  quantile = 0.95
)

Arguments

x

NINA niche object

y

NINA niche object

cor

Logical whether to use environmentally corrected densites

centroid.w

logical whether to weight niche overlap by distance to niche centroid

type

If centroid.w is TRUE, type of centroid to estimate. Default is 'unimodal'. See niche_position

method

If centroid.w is TRUE, statistic method to estimate the niche centroid. Default is 'median'. See niche_position

quantile

If centroid.w is TRUE, quantle threshold to filter niche densities. Default is 0.5. See niche_position

Value

Numeric value indicating the proportion of niche overlap between two niches


agarciaEE/NINA documentation built on Jan. 9, 2025, 10:09 a.m.