The STManaged R package runs the State and transition model for the eastern North American forest, with integrated forest management practices. This package allows you to spatially-explicit model the dynamics of four forest states (Boreal, Temperate, Mixed and Regeneration) over space and time. You will be able to set the intensity of four management practices (plantation, harvest, thinning and enrichment) that aim to increase the forest migration rate northward.

Installation

devtools::install_github("willvieira/STManaged")

Quick start

library(STManaged)

# Create an initial landscape defining the climate range and the cell size:
initLand <- create_landscape(climRange = c(-2.5, 0.35), cellSize = 3)

# Print the initial landscape
plot_landscape(initLand[['land']], nRow = initLand[['nRow']],
nCol = initLand[['nCol']], Title = 'initial_landscape')

# Run the model for 200 years with temperature increase of 1.8 degrees
lands <- run_model(steps = 40, initLand,
managInt = c(0, 0, 0, 0),
RCP = 4.5)

# Some functions are already built in to easily check the model output
## Forest state occupancy for first and last year
par(mfrow = c(2, 1))
plot_occupancy(lands, step = 0, spar = 0.4)
plot_occupancy(lands, step = 40, spar = 0.4)

## range Limit migration over time
plot_rangeLimitMigration(lands, rangeLimitOccup = 0.7)

## animated gif of the dynamics
animate(lands, stepsBy = 2, fps = 5, gifName = 'RCP4.5', rangeLimitOccup = 0.7)