R/dmm.growthplot.R

Defines functions dmm.growthplot

dmm.growthplot <- function(x, ...)
{
    nyr <- dim(x)[2] - 1
    grow <- cbind(x[,2],x[,3])
    if (nyr > 2)
        for (i in 3:nyr)
            grow <-rbind(grow, cbind(x[,i],x[,i+1]))
    # get rid of deaders
    grow <- grow[grow[,1]*grow[,2] > 0,]
    
    plot(grow[,1],grow[,2],tck=1,xlab="Size in year t", ylab="Size in year t+1", ...)
    invisible(grow)
}
BruceKendall/PVA documentation built on Jan. 23, 2021, 2:56 a.m.