| clogistic {primer} | R Documentation |
A function for continuous logistic growth, for use with ode in the deSolve package.
clogistic(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.
The function is based on the logistic growth equation
dN/dt = rN(1-alpha N)
or equivalently
dN/dt = rN(K-N)/K
Returns of list of one component (required by ode).
Hank Stevens <HStevens@muohio.edu>
Lotka, A.J. (1956) Elements of Mathematical Biology. Dover Publications, Inc.
Stevens. M.H.H. (2009) A Primer of Ecology with R. Use R! Series. Springer.
dlogistic, thetalogistic, levins, lvcomp2,
lvcompg
library(deSolve)
p <- c(1,.01)
time <- 1:10
initialN <- 10
out <- ode(y=initialN, times=time,
func=clogistic, parms=p)
plot(time, out[,-1], type='l')