sucMatrix {EcoVirtual} | R Documentation |
Simulates a successional model based on a transitional matrix of stages and its initial proportion of occurence in the landscape.
sucMatrix(mat.trans, init.prop, rw, cl, tmax)
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. |
The number of patches in the simulated landscape is defined by rw*cl.
'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.
Alexandre Adalardo de Oliveira ecovirtualpackage@gmail.com
Gotelli, N.J. 2008. A primer of Ecology. 4th ed. Sinauer Associates, 291pp.
## 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) ## End(Not run)