breadth_profile: Spatial breadth profile

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

View source: R/breadth_profile.R

Description

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

Usage

1
breadth_profile(raster, qvalues, relative, threshold)

Arguments

raster

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

qvalues

A vector of sequential orders of diversity (default from 0 to 5). qvalues=seq(from = 0, to = 5, by = (0.1))

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 profile computation based on Hill numbers

Value

A vector of breadth values at different orders of diversity or a matrix containing breadth values at different orders of diversity (columns) per projection (rows).

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

Examples

1
2
3
4
5
data()
breadth_profile(rasters[[1]])
breadth_profile(rasters[[1]],qvalues=seq(from = 0, to = 5, by = 1))
breadth_profile(rasters[[1]],qvalues=seq(from = 0, to = 5, by = 1), relative=TRUE)
breadth_profile(rasters,qvalues=seq(from = 0, to = 5, by = 1), relative=TRUE)

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