Skip to contents

This option adds a threshold() constraint to a scenario projection, thus effectively applying the threshold as mask to each projection step made during the scenario projection.

Applying this constraint thus means that the "suitability" projection is clipped to the threshold. This method requires the threshold() set for a scenario object.

It could be in theory possible to re calculate the threshold for each time step based on supplied parameters or even observation records. So far this option has not been necessary to implement.


add_constraint_threshold(mod, updatevalue = NA, ...)

# S4 method for BiodiversityScenario
add_constraint_threshold(mod, updatevalue = NA, ...)



A BiodiversityScenario object with specified predictors.


A numeric indicating to what the masked out values (those outside) the threshold should become (Default: NA).


passed on parameters. See also the specific methods for adding constraints.


Threshold values are taken from the original fitted model.


if (FALSE) {
# Add scenario constraint
scenario(fit) |> threshold() |>