plot.conc_microsim: Plot Values from a Concurrency Microsimulation Model

Description Usage Arguments Details

View source: R/plot.R

Description

Plots values from an concurrency microsimulation epidemic model simulated with conc_microsim.

Usage

1
2
3
4
## S3 method for class 'conc_microsim'
plot(x, sim.lines = FALSE, sim.alpha = 0.5,
  mean.line = TRUE, mean.smooth = TRUE, mean.lwd = 3, qnts = 0.5,
  qnt.alpha = 0.3, qnts.smooth = TRUE, xlim, ylim, ...)

Arguments

x

Object of class conc_microsim.

sim.lines

If TRUE, plot individual simulation lines.

sim.alpha

Transparency level for simulation lines, where 0 = transparent and 1 = opaque (see adjustcolor function).

mean.line

If TRUE, plot the row means of the simulation lines.

mean.smooth

If TRUE, smooth the mean line.

mean.lwd

Line width for mean line.

qnts

If TRUE, plot quantile polygon for specified range.

qnt.alpha

Transparency level for quantile band, similiarly specified to sim.alpha.

qnts.smooth

If TRUE, smooth the quantile band.

xlim

x-axis scale limits for plot, with default based on model time steps.

ylim

y-axis scale limits for plot, with default based on range of simulated data.

...

Additional arguments (not used)

Details

This function plots the disease prevalence from an conc_microsim model. The function is currently limited to individual simulation lines of disease prevalence.


statnet/concurrency.sim documentation built on Aug. 10, 2020, 2:33 a.m.