epiNet.simTrans
.## S3 method for class 'epiNet.simTrans':
plot(x, type = "sim", sim, at = 1,
col.inf = FALSE, shp.bip = NULL, zeromarg = TRUE, alpha, lwd,
plots.joined, ...)
EpiModel
model object of class
epiNet.simTrans
.type="sim"
for epidemic
model results, type="network"
for a static network
plot (plot.network
), or type="formation"
for network formation statistics.type="network"
, simulation number
for network graph.type="network"
, time step for network
graph.TRUE
and type="network"
,
automatic disease status colors (blue = susceptible, red
= infected, , green = recovered).type="network"
, specify shapes
in bipartite network for the second mode vertices, with
acceptable inputs of "triangle" and "square".TRUE
and type="network"
,
automatically sets plot margins to 0 on all sides.type="formation"
, transparency
level for lines, where 0 = transparent and 1 = opaque.type="formation"
, line width for
output values.TRUE
and
type="formation"
, combine all target statistics in
one plot, versus one plot per target statistic if
FALSE
.epiNet.simTrans
: type="sim"
, epidemic model results (e.g., disease
prevalence and incidence) may be plotted. In this case,
this plotting function wraps theplot.epiICM
function, as the stochastic epidemiological results are in
the same data structure. Consult the help page forplot.epiICM
for all the plotting parameters.type="network"
, a static network plot will be
generated. A static network plot of a dynamic network of
the sort simulated inEpiModel
is a cross-sectional
extraction of that dynamic network at a specific time
point. This plotting function wraps theplot.network
function in thenetwork
package. Consult the help page forplot.network
for
all the plotting parameters. In addition, five plotting
parameters specific toEpiModel
plots are available:sim
,at
,col.inf
,shp.bip
, andzeromarg
.type="formation"
, summary
network statistics related to partnership formation will be
plotted. These formation plots are similar to the formation
plots for bothepiNet.est
andepiNet.simNet
objects. When running aepiNet.simTrans
simulation, one must specify there
thatsave.stats=TRUE
; the plot here will then show
the network statistics requested explicitly instat.formula
, or use the formation formula set inepiNet.est
otherwise. Note, that these network
statistics are not saved for independentepiNet.simTrans
simulations, since all of the
network data, including these statistics, is simulated and
saved in the call toepiNet.simNet
; one should plot
theepiNet.simNet
object in that situation.plot.epiICM
, plot.network
## See EpiModel Tutorial vignette for examples ##
Run the code above in your browser using DataLab