weighted_endemism: Measure the distribution of narrow-ranged or endemic species.

View source: R/WeightedEndemism.R

weighted_endemismR Documentation

Measure the distribution of narrow-ranged or endemic species.

Description

weighted_endemism is species richness inversely weighted by species ranges.

Usage

weighted_endemism(x)

Arguments

x

A (sparse) community matrix.

Value

A data frame of species traits by site.

References

Crisp, M.D., Laffan, S., Linder, H.P. & Monro, A. (2001) Endemism in the Australian flora. Journal of Biogeography 28: 183–198.

Daru, B.H., Farooq, H., Antonelli, A. & Faurby, S. (2020) Endemism patterns are scale dependent. Nature Communications 11 : 2115.

Examples

library(terra)
data(africa)
p <- vect(system.file("ex/sa.json", package = "phyloregion"))
Endm <- weighted_endemism(africa$comm)
m <- merge(p, data.frame(grids=names(Endm), WE=Endm), by="grids")
m <- m[!is.na(m$WE),]

plot(m, "WE", col = hcl.colors(20), type="continuous")


darunabas/phyloregion documentation built on Feb. 3, 2024, 8:59 p.m.