plotTransNet: Plot transmission network

Description Usage Arguments Value

View source: R/simTransmission.R

Description

Takes in transmission matrix and plot a transmission network

Usage

1
2
3
4
5
6
7
8
9
plotTransNet(
  transmatrix,
  index_sym_latent = integer(0),
  index_sym_diagnosed,
  index_sym_recovered,
  index_asy_infectious = integer(0),
  index_asy_recovered,
  index_dead
)

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

index_sym_latent

index of symptomatic individuals who are in latent period

index_sym_diagnosed

index of symptomatic individuals who have been diagnosed

index_sym_recovered

index of symptomatic individuals who have recovered

index_asy_infectious

index of asymptomatic individuals who are still infectious (not recovered).

index_asy_recovered

index of asymptomatic individuals who have recovered

index_dead

index of individuals who was dead from the pandemic

Value

a plot of transmission network


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