Learn R Programming

EcoVirtual (version 1.1)

sucMatrix: Successional Stages Matrix

Description

Simulates a successional model based on a transitional matrix of stages and its initial proportion of occurence in the landscape.

Usage

sucMatrix(mat.trans, init.prop, rw, cl, tmax)

Arguments

mat.trans

a matrix of stage transition probabilites.

init.prop

a vector with the initial proportions of each stage.

rw

number of rows to build the simulated landscape.

cl

number of columns to build the simulated landscape.

tmax

maximum simulation time.

Value

'sucMatrix' return a simulation graphic with the proportions of stages in the landscape in time, and a stage distribution graphic with the results of the simulation with the number o patches in time for each stage.

'sucMatrix' also return an invisible array with the simulation results.

Details

The number of patches in the simulated landscape is defined by rw*cl.

References

Gotelli, N.J. 2008. A primer of Ecology. 4th ed. Sinauer Associates, 291pp.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
sucMatrix(mat.trans=matrix(data=c(0.5,0.5,0.5,0.5), nrow=2), 
init.prop=c(0.5,0.5),rw=20,cl=20, tmax=100)
# }
# NOT RUN {

# }

Run the code above in your browser using DataLab