Description Usage Arguments Details Value Author(s) See Also Examples

The derivative function of the logistic growth model, an example of a two dimensional autonomous ODE system.

1 |

`t` |
Value of t, the independent variable, to evaluate the derivative at. Should be a single number. |

`y` |
Value of y, the dependent variable, to evaluate the derivative at. Should be a single number. |

`parameters` |
Values of the parameters of the system. Should be a vector with parameters specified in the following order: beta, K. |

Evaluates the derivative of the following ODE at the point (t, y):

dy/dt = beta*y*(1 - y/K).

Format is designed to be compatible with ode from the deSolve package.

Returns a list dy containing the value of the derivative at (t, y).

Michael J. Grayling

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ```
# Plot the velocity field, nullclines and several trajectories.
logistic.flowField <- flowField(logistic, x.lim = c(0, 5), y.lim = c(-1, 3),
parameters = c(1, 2), points = 21, system = "one.dim",
add = FALSE)
logistic.nullclines <- nullclines(logistic, x.lim = c(0, 5), y.lim = c(-1, 3),
parameters = c(1, 2), system = "one.dim")
logistic.trajectory <- trajectory(logistic, y0 = c(-0.5, 0.5, 1.5, 2.5), t.end = 5,
parameters = c(1, 2), system = "one.dim")
# Plot the phase portrait.
logistic.phasePortrait <- phasePortrait(logistic, y.lim = c(-0.5, 2.5),
parameters = c(1, 2), points = 10, frac = 0.5)
# Determine the stability of the equilibrium points.
logistic.stability.1 <- stability(logistic, y.star = 0, parameters = c(1, 2),
system = "one.dim")
logistic.stability.2 <- stability(logistic, y.star = 2, parameters = c(1, 2),
system = "one.dim")
``` |

phaseR documentation built on May 19, 2017, 5:01 p.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.