stage.vector.plot {popbio} | R Documentation |
Plots short-term dynamics and convergence to stage stage distribution using stage vector projections.
stage.vector.plot(stage.vectors, proportions=TRUE, legend.coords="topright", ylim=NULL, xlab="Years", ylab=NULL, ... )
stage.vectors |
a matrix listing stage class vectors in columnw |
proportions |
plot proportional changes or total numbers, defaults to proportions. |
legend.coords |
a legend keyword or vector of x,y coordinates, defaults to top-right corner |
ylim |
the y limits of the plot, defaults to min and max values in stage.vector.projections |
xlab |
a label for the x axis |
ylab |
a label for the y axis |
... |
additional options are passed to plot function |
A plot of stage class projections
Chris Stubben
see section 2.2 in Caswell 2001
see pop.projection
stages<-c("seedling", "vegetative", "flowering") A<-matrix(c( 0, 0, 6, 0.4, 0.6, 0.02, 0.01,0.2, 0.25 ), nrow=3, byrow=TRUE, dimnames=list(stages,stages) ) n<-c(25,25,25) p<-pop.projection(A,n, 15) op <- par(ask = TRUE ) stage.vector.plot(p$stage.vectors) stage.vector.plot(p$stage.vectors, prop=FALSE, legend=c(1,300)) ## log scale stage.vector.plot(p$stage.vectors, prop=FALSE, log='y', legend="bottomright", ylab="Number in stage class (log scaled)") par(op)