cladelabels {phytools}R Documentation

Add labels to subtrees of a plotted phylogeny

Description

This function adds clade labels to a plotted tree.

Usage

cladelabels(tree=NULL, text, node, offset=NULL, wing.length=NULL, cex=1)

Arguments

tree

an object of class "phylo". If not supplied, the function will obtain the last plotted phylogeny from the environmental variable last_plot.phylo.

text

desired clade label text.

node

node number for the most recent common ancestor of members of the clade.

offset

offset (as a multiplier of character width) for the label. Defaults to offset=1 if tree is supplied or offset=8 otherwise.

wing.length

length of the wings to add to the top & bottom of the label bar (in character widths).

cex

character expansion factor.

Details

This function presently works only for rightward facing plotted phylogenies - but no warning will be returned if your tree does not conform to this requirement!

Author(s)

Liam Revell liam.revell@umb.edu

References

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.

See Also

nodelabels


[Package phytools version 0.4-60 Index]