cases.plot: Generate summary table and barplots (optional) of...

Description Usage Arguments Value

View source: R/simTransmission.R

Description

Generate summary table and barplots (optional) of asymptomatic & symptomatic cases at given times since pandemic starts

Usage

1
cases.plot(transmatrix, times, plot = TRUE)

Arguments

transmatrix

information matrix of transmission including infection time, recovery/dead time, number of people infected by current individual, current node number of current individual, node number of individual who infected the current person (ancestor), asymptomatic information, diagnosed time and death information of current person

times

a vector of truncated times (in days) during pandemic

plot

a logical parameter indicating whether to produce barplot or not (It's recommended to set to FALSE if vector "times" has a length longer than 15)

Value

barplots (optional) and summary tables illustrating number of cases of six groups (asymptomatic_infectious, asymptomatic_recovered, symptomatic_latent, symptomatic_diagnosed, symptomatic_recovered, dead) by truncated times.


Huimin-stat/simTransmission documentation built on Sept. 23, 2020, 12:43 a.m.