Visualizes a transmission matrix as a network graph, a rooted tree, or a timeline, depending on the chosen style.
Usage
transplot(
transmission,
style = 1,
vcolor = "lightblue",
vsize = 12,
label.cex = 1.5,
showlabel = FALSE,
dateLastSample = 2008
)Arguments
- transmission
A data frame representing the transmission matrix. Must contain 'infector', 'infectee', and 'prob'.
- style
Integer. 1 for standard network, 2 for rooted tree, 3 for timeline, 4 for detailed transmission plot.
- vcolor
node color.
- vsize
node size.
- label.cex
node label scaling.
- showlabel
Logical. If TRUE, displays probability weights on edges.
- dateLastSample
Numeric. The reference year/date for timeline styles.
