Description Usage Arguments Value Author(s) References See Also Examples
A function for the propagule rain or mainland-island metapopulation
dynamics, for use with ode
in the deSolve
package.
1 |
t |
Argument for time |
y |
A scalar for the population variable |
parms |
Vector or list of parameters |
Returns a list of length one, for use with ode
in the
deSolve
package.
Component 1 |
vector of the state variable (a scalar for the proportion of sites occupied). |
Hank Stevens <HStevens@muohio.edu>
Gotelli, N.J. (1991) Metapopulation models: the rescue effect, the propagule rain, and the core-satellite hypothesis. The American Naturalist, 138, 768–776.
Stevens, M.H.H. (2009) A Primer of Ecology with R. Use R! Series. Springer.
gotelli
, hanski
, lande
,
MetaSim
, clogistic
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## The function is currently defined as
function (t, y, parms)
{
p <- y[1]
with(as.list(parms), {
dp <- ce * (1 - p) - e * p
return(list(dp))
})
}
library(deSolve)
p <- c(ce=.1, e=.01)
time <- 1:10
initialN <- .3
out <- ode(y=initialN, times=time, func=gotelli, parms=p)
plot(time, out[,-1], type='l')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.