drawManifolds {phaseR} | R Documentation |
Stable and unstable manifolds
Description
Plots the stable and unstable manifolds of a saddle point. A search procedure is utilised to identify an equilibrium point, and if it is a saddle then its manifolds are added to the plot.
Usage
drawManifolds(
deriv,
y0 = NULL,
parameters = NULL,
tstep = 0.1,
tend = 100,
col = c("green", "red"),
add.legend = TRUE,
state.names = c("x", "y"),
method = "lsoda",
...
)
Arguments
deriv |
A function computing the derivative at a point for the ODE
system to be analysed. Discussion of the required structure of these
functions can be found in the package vignette, or in the help file for the
function |
y0 |
The initial point from which a saddle will be searched for. This
can either be a |
parameters |
Parameters of the ODE system, to be passed to |
tstep |
The step length of the independent variable, used in numerical
integration. Decreasing the absolute magnitude of |
tend |
The final time of the numerical integration performed to identify the manifolds. |
col |
Sets the colours used for the stable and unstable manifolds.
Should be a |
add.legend |
Logical. If |
state.names |
The state names for |
method |
Passed to |
... |
Additional arguments to be passed to plot. |
Value
Returns a list
with the following components:
add.legend |
As per input. |
col |
As per input, but with possible editing if a
|
deriv |
As per input. |
method |
As per input. |
parameters |
As per input. |
stable.1 |
A |
stable.2 |
A |
tend |
As per input. |
unstable.1 |
A |
unstable.2 |
A |
y0 |
As per input. |
ystar |
Location of the identified equilibrium point. |
Author(s)
Michael J Grayling, Stephen P Ellner, John M Guckenheimer