View source: R/getLabGenealogy.R
getLabGenealogy | R Documentation |
Create a labelled genealogy from an epidemiological record
getLabGenealogy(epirecord, epsilon = 0.001234)
epirecord |
an epidemiological record, as output from the function |
epsilon |
an optional small number to be used for branch lengths which would otherwise be zero. |
An object of class phylo
representing the transmission tree from infectors to infectees.
Caroline Colijn c.colijn@imperial.ac.uk
Michelle Kendall michelle.louise.kendall@gmail.com
makeEpiRecord
## Generate an epidemiological record: myepirecord <- makeEpiRecord(c(1,2,3,4)) ## make the corresponding genealogy from this record: mygenealogy <- getLabGenealogy(myepirecord) plot(mygenealogy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.