View source: R/ggtree_function_extensions.R
subsample_tree | R Documentation |
Subsample a phylogenetic tree by randomly selecting one node for all clades/subtrees of a maximum tip-root distance
subsample_tree(input_tree, cut_dist, plot_clades_to_prune = F)
input_tree |
Tree object (e.g. from ape) |
cut_dist |
max tip-root distance to select clades to be sub-sampled |
plot_clades_to_prune |
plot original input tree with clades to be pruned annotated [Default = False] |
Pruned tree object
subsample_tree(input_tree = tree_object, cut_dist = 0.02)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.