This function applies a minimum size constraint on a scenario() created
object. The rationale here is that for a given species isolated habitat patches
smaller than a given size might not be viable / unrealistic for a species
to establish a (long-term) presence.
The idea thus is to apply a constraint in that only patches bigger than a certain size are retained between timesteps. It has thus the potential to reduce subsequent colonizations of neighbouring patches.
Usage
add_constraint_minsize(
mod,
value,
unit = "km2",
establishment_step = FALSE,
...
)
# S4 method for class 'BiodiversityScenario,numeric'
add_constraint_minsize(
mod,
value,
unit = "km2",
establishment_step = FALSE,
...
)Arguments
- mod
A
BiodiversityScenarioobject with specified predictors.- value
A
numericvalue describing the minimum amount of area of a given patch- unit
A
characterof the unit of area. Options available arekm2(Default),haandpixel.- establishment_step
A
logicalflag indicating whether a given patch is only to be removed if wasn't small in a previous time step (not yet implemented!)- ...
passed on parameters. See also the specific methods for adding constraints.
Note
This function requires that a scenario has a set threshold()!
See also
Other constraint:
add_constraint(),
add_constraint_MigClim(),
add_constraint_adaptability(),
add_constraint_boundary(),
add_constraint_connectivity(),
add_constraint_dispersal(),
add_constraint_threshold(),
simulate_population_steps()
Examples
if (FALSE) { # \dontrun{
scenario(fit) |>
add_predictors(future_covariates) |>
threshold() |>
add_constraint_minsize(value = 1000, unit = "km2") |>
project()
} # }
