traj | R Documentation |
Function traj
is a generic method that extracts time and
population sizes from population models. The plot
function
presents population size(s) against time.
traj(x, ...) ## S3 method for class 'traj' plot(x, xlab = "Time (t)", ylab = "Population size", lwd = 2, lty = 1, col =c(4,2), type = "l", ...) ## S3 method for class 'traj' lines(x, ...)
x |
A population model or a |
xlab, ylab |
Axis labels. |
lwd, lty, col |
Line width, type and colours. |
type |
The type of plot (defaults to |
... |
Other arguments passed to functions; |
The population growth models use traj
to extract data for their
plots. The plot
function only shows the population sizes against
time. For trajectories in models, see lines
function with the
appropriate model.
Function returns a matrix with at least two columns. The first is time, and the later are population sizes.
Jari Oksanen
mod <- lotkacomp(1.4, 0.9, 30, 30) plot(traj(mod, 10, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.