Usage
## S3 method for class 'epiICM':
plot(x, y, popfrac, sim.lines = FALSE, sims, sim.col,
sim.lwd, sim.alpha, mean.line = TRUE, mean.extinct = TRUE, mean.col,
mean.lwd, mean.lty, qnts, qnts.col, qnts.alpha, leg, leg.cex, xlim, ylim,
main, axs, add = FALSE, ...)
Arguments
x
an EpiModel
object of class
epiICM
.
y
output compartments or flows from epiICM
object to plot.
popfrac
if TRUE
, plot prevalence of values
rather than numbers (see details).
sim.lines
if TRUE
, plot individual
simulation lines.
sims
a vector representing which individual
simulation lines to plot, with default to plot all
lines.
sim.col
a vector of any standard R color format
for simulation lines.
sim.lwd
line width for simulation lines.
sim.alpha
transparency level for simulation lines,
where 0 = transparent and 1 = opaque (see
transco
). mean.line
if TRUE
, plot mean of simulations
across time.
mean.extinct
if TRUE
, include extinct
simulations in mean calculation (see details).
mean.col
a vector of any standard R color format
for mean lines.
mean.lwd
line width for mean lines.
mean.lty
line type for mean lines.
qnts
if numeric, plot polygon of simulation
quantiles based on the range implied by the argument (see
details). If FALSE
, supress polygon plot.
qnts.col
a vector of any standard R color format
for polygons.
qnts.alpha
transparency level for quantile
polygons, where 0 = transparent and 1 = opaque (see
transco
). leg
if TRUE
, plot default legend.
leg.cex
a numeric value to scale the legend size.
xlim
x-axis scale limits for plot, with default
calculated based on model time steps.
ylim
y-axis scale limits for plot, with default
calculated based on range of data.
main
character string for main plot title.
axs
plot axis type (see par
for
details), with default to "r"
. add
if TRUE
, new plot is not called and
lines are added to existing plot.
...
additional arguments to pass to main plot (see
plot.default
).