Description Usage Arguments Author(s) References Examples
Plots a phybreak
-object as phylogenetic tree with coloured branches indicating hosts. The default
is to plot the current state, but any posterior sample can be chosen, as well as various consensus trees.
1 2 |
x |
An object of class |
plot.which |
Either |
samplenr |
If |
... |
Additional options for |
Don Klinkenberg don@xs4all.nl
Klinkenberg et al. (2017) Simultaneous inference of phylogenetic and transmission trees in infectious disease outbreaks. PLoS Comput Biol, 13(5): e1005495.
1 2 3 4 5 6 7 | #First build a phybreak-object containing samples.
simulation <- sim.phybreak(obsize = 5)
MCMCstate <- phybreak(data = simulation$sequences, times = simulation$sample.times)
MCMCstate <- burnin.phybreak(MCMCstate, ncycles = 20)
MCMCstate <- sample.phybreak(MCMCstate, nsample = 50, thin = 2)
plot(MCMCstate, plot.which = "mpc")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.