Learn R Programming

simecol (version 0.8-14)

plot-methods: Methods for Function plot in Package `simecol'

Description

Methods for function plot in package simecol.

Usage

# S4 method for simObj,missing
plot(x, y, …)
  # S4 method for odeModel,missing
plot(x, y, …)
  # S4 method for odeModel,odeModel
plot(x, y, …)
  # S4 method for gridModel,missing
plot(x, y, index=1:length(x@out), delay=0, …)
  # S4 method for rwalkModel,missing
plot(x, y, index=1:length(x@out), delay=0, …)

Arguments

x

an object of class simObj,

y

either a second odeModel object or ignored,

index

index of time steps to be plotted,

delay

delay (in ms) between consecutive images (for gridModels) or xy-plots (for rwalkModels),

...

optional plotting parameters.

Methods

x = "ANY", y = "ANY"

Generic function: see plot.

x = "simObj", …

template function, does nothing and only issues a warning.

x = "odeModel", …

plots time series of the state variables where one or more odeModel objects can be supplied. Optional plotting parameters are possible, too. See plot.deSolve for details.

x = "gridModel", …

displays a series of images for the simulated grid.

x = "rwalkModel", …

displays a series of x-y plots of the simulated individuals.