
Last chance! 50% off unlimited learning
Sale ends in
vB calculates length at age for the von Bertalanffy curve.
vB(p, ages)
is a vector the first three cells of which are Linf, K, and t0 for the vB curve.
is a vector of ages; could be a single number
a vector of predicted lengths for the vector of ages in 'ages'
# NOT RUN {
ages <- seq(0,20,1) # sigma is ignored here
pars <- c(Linf=50,K=0.3,t0=-1.0,sigma=1.0) # Linf, K, t0, sigma
oldpar <- par(no.readonly=TRUE)
plot1(ages,vB(pars,ages),xlab="Age",ylab="Length",lwd=2)
par(oldpar)
# }
Run the code above in your browser using DataLab