Learn R Programming

primer (version 1.2.0)

thetalogistic: Continuous Theta-Logistic Growth

Description

A function for continuous theta-logistic growth, for use with ode in the deSolve package.

Usage

thetalogistic(times, y, parms)

Arguments

times

Times points that will return N

y

N

parms

a vector of logistic growth parameters

Value

Returns of list of one component (required by ode).

Details

The user does not put these directly into this function, but rather uses ode in the deSolve package. See ode in the deSolve package.

References

Sibly, R.M., Barker, D., Denham, M.C., Hone, J., and Pagel, M. (2005) On the regulation of populations of mammals, birds, fish, and insects. Science, 309, 607--610.

Stevens, M.H.H. (2009) A Primer of Ecology with R. Use R! Series. Springer.

See Also

clogistic

Examples

Run this code
# NOT RUN {
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')

# }

Run the code above in your browser using DataLab