collapse.to.star | R Documentation |
Collapses a subtree to a star.
collapse.to.star(tree, node)
tree |
an object of class |
node |
node for the clade to be collapsed. |
If the tree has edge lengths, the function will keep the tips at the same height above the root as in the original tree.
If node
is the global root of the tree a star phylogeny will be created.
An object of class "phylo"
.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
splitTree
, starTree
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.