Learn R Programming

EpiModel (version 2.0.1)

plot.transmat: Plot transmat infection tree in one of several styles

Description

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.

Usage

# S3 method for transmat
plot(x, style = c("phylo", "network", "transmissionTimeline"), ...)

Arguments

x

A transmat object to be plotted

style

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)

Details

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.

See Also

plot.network,plot.phylo