Plots the infection tree described in a transmat
object in one of several styles: phylogenetic tree, an un-rooted
network, a hierarchical tree, or a transmissionTimeline.
# S3 method for transmat
plot(x, style = c("phylo", "network", "transmissionTimeline"), ...)
A transmat
object to be plotted
Character name of plot style. One of "phylo", "network", or "transmissionTimeline"
Additional plot arguments to be passed to lower-level plot functions (plot.network, plot.phylo, etc)
The phylo plot requires the ape
package. The
ndtv::transmissionTimeline
requires that the ndtv
package
is installed. All of the options are essentially
wrappers to other plot calls with some appropriate preset arguments.