Plotting the the flow vector field of a 2D ODE system. With additions of trajectories and null clines.
The main function is phaseArrows
, which plots vectors of the flow field of the phase plane.
Further functionality of this package are
phaseNullclines
: draw nullclines, estimated by contour line at level 0
drawTrajectories
: evaluate and draw trajectories in the phase plane
phaseContours
: draw contour lines for the y and x component of the derivative
jacobianAtXY
: Numerical approximation of the Jacobian at a point.
See also functionality of other packages:
eigen
: Computes eigenvalues and eigenvectors of real (double, integer, logical) or complex matrices.
Example systems provided with the package are:
predatorprey
: Lotka-Volterra system
competition
: A competition system in which two populations of animals compete for the same limited resource
newtoncooling
:
fhn
:
disease
:
linear
: damped harmonic oscillator, e.g. The dynamics of a spring-mass system with air friction.
This package draws from ideas and code of http://www.macalester.edu/~kaplan/math194/pplane.pdf of Prof. Daniel Kaplan. The original code is provided in origR/pplane.R in the installation directory.
Thomas Wutzler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.