plot_mdl_diff: Plot differences in suitable areas between models selected...

View source: R/7.f.plot.mdl.sel.crit.diff.R

plot_mdl_diffR Documentation

Plot differences in suitable areas between models selected using distinct criteria

Description

Will plot (or save as PDF) differences between predictions of models selected using distinct model selection criteria (for multiple climatic scenarios). PDFs will be saved within the folder 'Mdls.thrshld/figs'.

Usage

plot_mdl_diff(
  mcmp,
  mtp,
  sp.nm = "species",
  basemap = NULL,
  save = FALSE,
  mfrow = c(0, 0),
  numCores = 1,
  msnm = c("AUC10", "AUCmtp", "OR10", "ORmtp"),
  msr = c("AUC (OR10p)", "AUC (ORlpt)", "OR10p (AUC)", "ORlpt (AUC)"),
  scnm = c("cc26bi70", "cc45bi70", "cc60bi70", "cc85bi70", "mp26bi70", "mp45bi70",
    "mp85bi70", "mr26bi70", "mr45bi70", "mr60bi50", "mr85bi70", "cclgmbi", "ccmidbi",
    "lig_30s_bio_", "melgmbi", "memidbi", "mrlgmbi", "mrmidbi", "ncurrent", "current"),
  scr = c("2070-CCSM4-rcp2.6", "2070-CCSM4-rcp4.5", "2070-CCSM4-rcp6.0",
    "2070-CCSM4-rcp8.5", "2070-MPI-ESM-LR-rcp2.6", "2070-MPI-ESM-LR-rcp4.5",
    "2070-MPI-ESM-LR-rcp8.5", "2070-MIROC-ESM-rcp2.6", "2070-MIROC-ESM-rcp4.5",
    "2070-MIROC-ESM-rcp6.0", "2070-MIROC-ESM-rcp8.5", "LGM-CCSM4", "MH-CCSM4",
    "LIG-CCSM3", "LGM-MPI-ESM-P", "MH-MPI-ESM-P", "LGM-MIROC-ESM", "MH-MIROC-ESM",
    "Near Current", "Near Current")
)

Arguments

mcmp

An object returned by proj_mdl, containing calibrated models and model projections for each species; or species "i" of a object returned by "proj_mdl_b", containing a list of calibrated models and model projections for each species

mtp

Stack or brick of thresholded predictions

sp.nm

Species name. Used to name the output folder

basemap

Shapefile to be plotted with. Usually a continent or country shapefile

save

Logical. If TRUE will save plots in pdf.

mfrow

Number of rows and cols to draw plot (see ?par for details). If

numCores

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

msnm

Character vector. Short names of model selection criteria to be replaced. Same as given in Model names (ex. AUC10, AUCmtp, OR10, ORmtp)

msr

Character vector. Long names of model selection criteria to replace the short names. Must be in same order of argument 'msnm'

scnm

Character vector. Short names of climatic scenarios to be replaced. Ex. "cc26bi70", "cc45bi70"

scr

Character vector. Long names of climatic scenarios to replace the short names. Must be in same order of argument 'scnm'. Ex. "2070-CCSM4-rcp2.6", "2070-CCSM4-rcp4.5"

Details

Plot differences between predictions of models selected using distinct criteria (e.g. "AvgAIC", "LowAIC", "OR", "AUC") for multiple climatic scenarios

See Also

plot_scn_diff_b

Examples

## Not run: 
plot_mdl_diff(mcmp=mxnt.mdls.preds.lst[[1]], mtp.l=mods.thrshld.lst[[1]], basemap=NewWorld)

## End(Not run)

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