Learn R Programming

phyloregion (version 1.0.2)

weighted_endemism: 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<U+2013>198.

Examples

Run this code
# NOT RUN {
library(raster)
data(africa)
Endm <- weighted_endemism(africa$comm)
m <- merge(africa$polys, data.frame(grids=names(Endm), WE=Endm), by="grids")
m <- m[!is.na(m@data$WE),]

plot_swatch(m, values = m$WE, k=20)

# }

Run the code above in your browser using DataLab