range_shift_b: Map shifts in suitable areas

View source: R/8.1.f.metrics-area_gain_loss.R

range_shift_bR Documentation

Map shifts in suitable areas

Description

Map shifts in suitable areas between a selected climatic scenario and all other climatic scenarios for each species.

Usage

range_shift_b(mtp.l, ref.scn = "ncurrent", numCores = 1, format = "raster")

Arguments

mtp.l

List of stack or brick of thresholded predictions

ref.scn

Selected climatic scenario to compare with all others. Usually "ncurrent". any (row or col) is 0, it will draw the layout automatically.

numCores

Number of cores to use for parallelization. If set to 1, no paralellization is performed

format

Character. Output file type. Argument 'format' of raster::writeRaster

Value

Return a nested list, containig rasters with differences between a selected climatic scenario and all other climatic scenarios.

See Also

range_shift

Examples

## Not run: 
spp_diff <- range_shift_b(mods.thrshld.lst, ref.scn = "ncurrent")

col <- c("red", "gray", "blue") #RColorBrewer::brewer.pal(9,"YlOrRd")
breaks <- round(seq(from=-1, to=1, .666), 2)
colors <- colorRampPalette(col)(length(breaks)-1)

plot(spp_diff[[1]][[1]][[1]], col=colors, breaks=breaks)

## End(Not run)

HemingNM/ENMwizard documentation built on Jan. 4, 2024, 3:24 p.m.