plot_trans: Visualize pair-wise transmission likelihood

View source: R/plot_trans.R

plot_transR Documentation

Visualize pair-wise transmission likelihood

Description

Plot the individual transmission probablity matrix

Usage

plot_trans(Rj, from = 1:200, to = 1:200, title = NULL)

Arguments

Rj

Input the result of 'Rj'; a list must contain a matrix of individual transmission probablity from case i to case j called 'Pij'.

from

Origin of transmission, y-axis on the plot.

to

Destination of transmission, x-axis on the plot.

title

Main title of plot.

Examples

data("EpiTrans")

res_adj = Rj(t = dengue$date, x = dengue$long, y = dengue$lat,GI.pdf = lpdf_GI(),SW.pdf = lpdf_SW(), adjSP = TRUE)
res = Rj(t = dengue$date, GI.pdf = lpdf_GI(), adjSP = FALSE)

plot_trans(res, from = 1:200, to = 1:200)
plot_trans(res_adj, from = 1:200, to = 1:200)

wenlab501/EpiTrans documentation built on July 8, 2022, 9:14 a.m.