View source: R/ggtree_function_extensions.R
collapse_tree | R Documentation |
Given a list of nodes, collapse these nodes in a ggtree object
collapse_tree(tree, nodes, type = "max", colours = "none")
tree |
Tree object |
nodes |
List of internal nodes to collapse |
type |
Type of collapsing to run - "min", "max" or "mixed". [Default = "max"] |
colours |
List of hex colours to colour the collapsed cones, order of the colours corresponds with the list of nodes given [Default = "none"] |
Tree object with requested tips pruned out
remove_tips_from_tree(tree_object, list_of_tips)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.