collapseTree | R Documentation |
Function creates an interactive visualization of collapsing & expanding clades on the tree.
collapseTree(tree, ...)
tree |
an object of class |
... |
optional arguments. These mostly match the arguments of |
Function first plots a fan style tree, and then the user collapses node on the tree by clicking on them. Collapsed nodes are collapsed to the common ancestor of the clade. Nodes that have been collapsed can also be expanded by clicking. Right-click (or select Finish button in RStudio) to end.
Note, for the animation to work probably when run in the RStudio IDE the "zoom" level should be set to 100%.
Returns the final plotted tree.
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.
plotTree
, plotSimmap
## Not run:
data(liolaemid.tree)
pruned<-collapseTree(liolaemid.tree,fsize=0.5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.