View source: R/8.1.f.metrics-area_gain_loss.R
range_shift_b | R Documentation |
Map shifts in suitable areas between a selected climatic scenario and all other climatic scenarios for each species.
range_shift_b(mtp.l, ref.scn = "ncurrent", numCores = 1, format = "raster")
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 |
Return a nested list, containig rasters with differences between a selected climatic scenario and all other climatic scenarios.
range_shift
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.