This function creates a new BiodiversityScenario object that contains the projections of a model.
Usage
scenario(fit, limits = NULL, reuse_limits = FALSE, copy_model = FALSE)
# S4 method for class 'ANY'
scenario(fit, limits = NULL, reuse_limits = FALSE, copy_model = FALSE)Arguments
- fit
A
BiodiversityDistributionobject containing a trained model.- limits
A
SpatRasterorsfobject that limits the projection surface when intersected with the prediction data (Default:NULL). This can for instance be set as an expert-delineated constrain to limit spatial projections.- reuse_limits
A
logicalon whether to reuse limits if found in the trainedBiodiversityDistributionobject (Default:FALSE). See also notes!- copy_model
A
logicalof whether the model object is to be copied to the scenario object. Note that setting this option toTRUEcan increase the required amount of memory (Default:FALSE).
Note
If a limit has been defined already during train(), for example by adding
an extrapolation limit add_limits_extrapolation(), this zonal layer can be
reused for the projections. Note: This effectively fixes the projections to certain areas.
