For a sample with or without unsampled hosts, draw the annotated phylogeny using ggtree
For a sample with or without unsampled hosts, draw the annotated phylogeny using ggtree
draw.incompletely.sampled(generator, sample)
Arguments
generator: A list of class tt.generator produced by tt.generator.
sample: A list of class tt produced by sample.tt or sample.partial.tt
Returns
A ggtree object
Examples
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 branchdraw.incompletely.sampled(generator, samples[[1]])# This still works if there are no unsampled hostssamples <- sample.tt(generator,1)draw.incompletely.sampled(generator, samples[[1]])