traj_plot | R Documentation |
This function handles trajectories can stem from either of two sources:
A parametric description of a curve, such as sin(t) ~ cos(t)
, along with a
domain in t.
The solution to an ordinary differential equation as produce by integrateODE()
traj_plot(..., npts = 500, nt = 5)
... |
Handles the first several objects which are, in this order
- tilde: a two sided tilde expression
- soln: optionally, a solution object such as from |
npts |
number of plotted points (default: 500) |
nt |
number of tick marks to use in a trajectory plot |
The tilde expression is the critical part
traj_plot(2*x + 3 ~ sin(x), domain(x=0:10))
PPdyn <- makeODE(dR ~ 0.3*R - 0.03*R*F, dF ~ -0.3*F + 0.0003*R*F)
Soln <- integrateODE(PPdyn, domain(t=0:20), R=1200, F=8)
traj_plot(R(t) ~ F(t), Soln, nt=10)
traj_plot(R(t)*F(t) ~ t, Soln, nt=0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.