linklabels | R Documentation |
Adds tip labels to a plotted tree by drawing curved, bent, or straight linking lines.
linklabels(text,tips,link.type=c("bent","curved","straight"),
...)
text |
text string or vector to be used as labels. |
tips |
node numbers (indices) for the tips to be labeled. |
link.type |
manner in which to draw the linking lines. |
... |
optional arguments, including |
The idea underlying this function is that the user should first plot the tree without tip labels, but set the area of the plotting device to be sufficient to accommodate the tip labels once they have been added. The function then can be called to add tip labels connected by linking lines to the tips of the plotted tree.
This function annotates a plot.
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
, tiplabels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.