plot.phybreakdata: Plotting a phybreakdata object.

Description Usage Arguments Author(s) References Examples

View source: R/plot_phybreakdata.R

Description

Plots a phybreakdata-object twice: (1) as transmission tree and (2) as phylogenetic tree, using the default graphical parameters of plotTrans and plotPhylo. The default is to plot the current state, but any posterior sample can be chosen, as well as various consensus trees. Consensus tree "edmonds" plots only a transmission tree, consensus tree "mcc" only a phylogenetic tree.

Usage

1
2
## S3 method for class 'phybreakdata'
plot(x, ...)

Arguments

x

An object of class phybreakdata.

...

Some methods for this generic require additional arguments. None are used in this method.

Author(s)

Don Klinkenberg don@xs4all.nl

References

Klinkenberg et al. (2017) Simultaneous inference of phylogenetic and transmission trees in infectious disease outbreaks. PLoS Comput Biol, 13(5): e1005495.

Examples

1
2
3
4
# First make a phybreakdata-object by simulation.
simulation <- sim_phybreak(obsize = 5)

plot(simulation)

donkeyshot/phybreak documentation built on Sept. 17, 2021, 9:32 p.m.