View source: R/WeightedEndemism.R
weighted_endemism | R Documentation |
weighted_endemism
is species richness inversely weighted
by species ranges.
weighted_endemism(x)
x |
A (sparse) community matrix. |
A data frame of species traits by site.
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.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.