Description Usage Arguments Details Value Examples
Plot a phase portrait of a dynamical system that includes the vector field, nullclines, example trajectories, and the identification and classification of equilibria.
1 2 3 4 |
qE |
numeric scalar for harvest |
pars |
optional named numeric vector for additional parameters to be passed to |
func, |
function that returns local derivatives, defaults to |
x.lim, y.lim |
minimum and maximum values for each of the two states variables to be used when plotting and searching for equilibria |
add |
local, if FALSE (default) makes a new plot |
nFlow |
square root of the number of arrows to draw in the vector field |
nNull |
numeric scalar, number of points used in drawing the nullclines |
t.end |
number of time steps (in model time units) to use when simulating the trajectories |
inits |
matrix of initial values to use for trajectories |
addLeg |
if TRUE, adds a legend |
legPos |
character position of legend; see |
This function is largely a wrapper for phaseR::flowField
, phaseR::trajectory
, phaseR::nullclines
, and phaseR::stability
. This function does not call phaseR::stability
directly, and instead uses stabClass
.
a data.frame with stability information; see stabClass
1 2 3 4 5 6 7 8 9 10 11 | # shortInits <- eval(formals(phasePortrait)$inits)[1:3,]
# pars <- c(q=8,s=0.7,h=0.15, b=0.001)
qEvals <- c(0.2, 0.5, 1, 1.25)
par(mfrow=c(2,2), mar=c(2,2,1,0.5), mgp=c(1,0.25,0), tcl=-0.15, cex=1, ps=9, cex.axis=0.85)
for(j in 1:4){
(phasePortrait(
qE=qEvals[j], pars=NULL,
nFlow=5, nNull=5,t.end=5,
addLeg=TRUE
))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.