labelnodes | R Documentation |
Adds node labels to a plotted object of class "phylo"
.
labelnodes(text, node=NULL, interactive=TRUE, shape=c("circle","ellipse",
"rect"), ...)
text |
text string or vector to be used as labels. |
node |
node numbers (indices) for the labels. |
interactive |
logical value indicating whether or not nodes should be supplied interactively. (I.e., by clicking on the nodes.) |
shape |
shape to plot around the plotted node label(s). |
... |
optional arguments. |
The nodes to be labels can be selected interactively by the user (i.e., by clicking on the corresponding nodes of the plotted tree).
Invisibly returns a vector of the node indices for the labeled nodes.
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.
cladelabels
, nodelabels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.