cladelabels | R Documentation |
This function adds clade labels to a plotted tree.
cladelabels(tree=NULL, text, node, offset=NULL, wing.length=NULL, cex=1,
orientation="vertical")
arc.cladelabels(tree=NULL, text, node=NULL, ln.offset=1.02,
lab.offset=1.06, cex=1, orientation="curved", stretch=1, ...)
tree |
an object of class |
text |
desired clade label text. |
node |
node number for the most recent common ancestor of members of the clade. For |
offset |
offset (as a multiplier of character width) for the label. Defaults to |
wing.length |
length of the wings to add to the top & bottom of the label bar (in character widths). |
cex |
character expansion factor. |
orientation |
orientation of the text. Can be |
ln.offset |
line offset (as a function of total tree height) for |
lab.offset |
label offset for |
stretch |
argument for |
... |
optional arguments for |
cladelabels
presently works only for rightward facing plotted phylogenies - but no warning will be returned if your tree does not conform to this requirement!
arc.cladelabels
is designed to do a similar thing to cladelabels
, but for plotted fan trees. This function checks to ensure that the most recently plotted tree was plotted with type="fan"
style.
Liam Revell liam.revell@umb.edu
Paradis, E., J. Claude, and K. Strimmer (2004) APE: Analyses of phylogenetics and evolution in R language. Bioinformatics, 20, 289-290.
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
nodelabels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.