Description Usage Arguments Value Examples
View source: R/utility_functions.R
For a sample with or without unsampled hosts, draw the annotated phylogeny using ggtree
1 | draw.incompletely.sampled(generator, sample)
|
generator |
A list of class |
sample |
A list of class |
A ggtree
object
1 2 3 4 5 6 7 | generator <- tt.generator(stratus.example.tree, max.unsampled = 2)
samples <- sample.tt(generator, 1, unsampled=2)
# Tree is annotated with the number of unsampled hosts along each branch
draw.incompletely.sampled(generator, samples[[1]])
# This still works if there are no unsampled hosts
samples <- sample.tt(generator, 1)
draw.incompletely.sampled(generator, samples[[1]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.