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, ...)
an object of class "phylo"
. If not supplied, the function will obtain the last plotted phylogeny from the environmental variable last_plot.phylo
.
desired clade label text.
node number for the most recent common ancestor of members of the clade. For arc.cladelabels
this defaults to NULL
which means that the node of the clade to be labeled should be specified interactively (that is, by clicking on the graphical device).
offset (as a multiplier of character width) for the label. Defaults to offset=1
if tree
is supplied or offset=8
otherwise.
length of the wings to add to the top & bottom of the label bar (in character widths).
character expansion factor.
orientation of the text. Can be orientation = "vertical"
(the default) or "horizontal"
.
line offset (as a function of total tree height) for arc.cladelabels
.
label offset for arc.cladelabels
.
argument for arc.cladelabels
to be passed to arctext
.
optional arguments for arc.cladelabels
.
Liam Revell liam.revell@umb.edu
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.
Paradis, E., J. Claude, and K. Strimmer (2004) APE: Analyses of phylogenetics and evolution in R language. Bioinformatics, 20, 289-290.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
nodelabels