overlap_metrics: Helper function to compute overlap metrics

View source: R/helpers.R

overlap_metricsR Documentation

Helper function to compute overlap metrics

Description

Helper function to compute overlap metrics

Usage

overlap_metrics(
  comparison_matrix,
  background,
  mahalanobis,
  suitability,
  return_background = TRUE
)

Arguments

comparison_matrix

matrix resulted from using the combn function to obtain the pairwise overlap of all niches to be compared.

background

matrix of environmental variables to be used as background.

mahalanobis

matrix of mahalanobis distances calculated for all niches to be compared.

suitability

matrix of suitability values calculated for all niches to be compared.

Value

A list of two data.frames containing metrics of overlap and other data useful for plotting results.


marlonecobos/ellipsenm documentation built on Oct. 18, 2023, 8:09 a.m.