thetalogistic {primer} | R Documentation |
A function for continuous theta-logistic growth, for use with ode
in the deSolve
package.
thetalogistic(times, y, parms)
times |
Times points that will return N |
y |
N |
parms |
a vector of logistic growth parameters |
The user does not put these directly into this function, but rather uses ode
in the deSolve
package. See ode
in the deSolve
package.
Returns of list of one component (required by ode
).
Hank Stevens (HStevens@muohio.edu)
Sibly, R.M., Barker, D., Denham, M.C., Hone, J., and Pagel, M. On the regulation of populations of mammals, birds, fish, and insects. Science, 309:607–610, 2005.
Stevens, M.H.H. 2009. A Primer of Ecology with R. Use R! Series. Springer.
library(deSolve) p <- c(r=1,alpha=.01, theta=.5) time <- seq(1,10, by=.1) initialN <- 10 out <- ode(y=initialN, times=time, func=thetalogistic, parms=p) plot(time, out[,-1], type='l')