habitat_dynamics_functions: Functions to modify the habitat in a landscape object.

Description Usage Arguments Examples

Description

Pre-defined functions to operate on habitat suitability (and carrying capacity if a function is used) during a simulation.

Usage

1
2
3
4
disturbance(disturbance_layers, effect_time = 1)

fire_effects(fire_layers, lag = 3,
  regeneration_function = function(time) {     -time })

Arguments

disturbance_layers

the name(s) of spatial layer(s) in the landscape object with disturbances used to alter the habitat object for each timestep (number of layers must match the intended timesteps)

effect_time

the number of timesteps that the disturbance layer will act on the habitat object

fire_layers

the name(s) of spatial layer(s) in the landscape object with fire disturbances used to alter the habitat object for each timestep (number of layers must match the intended timesteps)

lag

the number of timesteps that the fire layer will act on the habitat object

regeneration_function

a function that determines how fast the landscape will regenerate after a fire event

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
library(steps)


# Use the disturbance function to modify the habitat using spatial
# layers (stored in the landscape object and called "logging"):

logging <- disturbance(disturbance_layers = "logging",
                    effect_time = 1)

# Use the fire_effects function to modify the habitat using spatial
# fire layers (stored in the landscape object and called "fires")
# and a regeneration function:

fire <- fire_effects(fire_layers = "fires",
                    lag = 5,
                    regeneration_function = function (time) {-time})

steps documentation built on May 2, 2019, 9:41 a.m.