breadth: Spatial breadth

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/breadth.R

Description

Compute Hill numbers-based spatial breadths from one or multiple Environmental Niche Model projection rasters.

Usage

1
breadth(raster, qvalue, relative, threshold)

Arguments

raster

A RasterLayer (single projection) or RasterStack (multiple projections) object containing ENM projection(s) with suitability scores.

qvalue

A positive number, usually between 0 and 5, but most commonly 0, 1 or 2. It can be an integer or contain decimals.

relative

Whether to compute absolute or relative breadths. Default=FALSE

threshold

Suitability value(s) below which all values are converted into zeros. If a RasterStack (multiple projections) is used, the argument should contain a vector of threshold values.

Details

Spatial breadth computation based on Hill numbers

Value

A single or multiple spatial breadth measures.

Author(s)

Antton Alberdi, anttonalberdi@gmail.com

References

Alberdi, A., Novella-Fernandez R., Aizpurua, O., Razgour, O. (2019). Measuring breadth and overlap of spatial projections of environmental niche models based on Hill numbers.

Alberdi, A., Gilbert, M.T.P. (2019). A guide to the application of Hill numbers to DNA-based diversity analyses. Molecular Ecology Resources, 19, 804-817.

See Also

breadth_profile

Examples

1
2
3
4
5
6
data()
breadth(rasters[[1]],qvalue=1)
breadth(rasters,qvalue=2,relative=TRUE)
breadth(rasters,qvalue=2,relative=TRUE)
breadth(raster[[1]],qvalue=2,relative=TRUE,threshold=100)
breadth(rasters,qvalue=2,relative=FALSE,threshold=c(82,98,102,98,150,34)

anttonalberdi/ENMhill documentation built on Nov. 2, 2019, 1:57 p.m.