plot.datagen: S3 method to plot summary of epidemic.

Description Usage Arguments Details Value See Also

View source: R/epiplot.r

Description

plot.datagen is an S3 method that provides different plots summarizing epidemic of class datagen.

Usage

1
2
## S3 method for class 'datagen'
plot(x, plottype, time.index = NULL, ...)

Arguments

x

an object that has a class of datagen.

plottype

History or propagation plots of the epidemic.

time.index

used for obtaining propagation plots at specific infection time points rather than at every infection time. A plot at the first time point is included in any chosen set of infection time points. The default is to provide propagation plot at every infection time point. It is not required when plottype is set to “history”.

...

additional arguments that are passed to the generic plot function.

Details

If plottype is set to “history”, the function produces epidemic curves of infection and removal times (SIR model), or infection, notification, and removal times (SINR model). If it is set to “propagation”, the function produces plots of the propagation of epidemic over time based on the setting option of the argument kerneltype. With the network kernel, the function plots all the connections between individuals (in gray) and overlays these with the epidemic pathway direction over time. With the distance kernel, the function plots the epidemic dispersion over time. It shows the changes in the individual status that related to the chosen compartmental framework in type.

Value

plot

See Also

contactnet, datagen.


EpiILMCT documentation built on June 29, 2021, 9:08 a.m.