Function adds tip labels to a plotted tree by drawing curved, bent, or straight linking lines.
linklabels(text,tips,link.type=c("bent","curved","straight"),
...)
This function annotates a plot.
text string or vector to be used as labels.
node numbers (indices) for the tips to be labeled.
manner in which to draw the linking lines.
optional arguments, including cex
, lty
, lwd
, and col
.
Liam Revell liam.revell@umb.edu
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.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
cladelabels
, nodelabels
, tiplabels