plot_trans | R Documentation |
Plot the individual transmission probablity matrix
plot_trans(Rj, from = 1:200, to = 1:200, title = NULL)
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. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.