Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

labelnodes

Function to interactively label nodes of a plotted tree


Description

Function adds node labels to a plotted object of class "phylo". The nodes to be labels can be selected interactively by the user (i.e., by clicking on the corresponding nodes of the plotted tree).

Usage

labelnodes(text, node=NULL, interactive=TRUE, shape=c("circle","ellipse",
   "rect"), ...)

Arguments

text

text string or vector to be used as labels.

node

node numbers (indices) for the labels.

interactive

logical value indicating whether or not nodes should be supplied interactively. (I.e., by clicking on the nodes.)

shape

shape to plot around the plotted node label(s).

...

optional arguments.

Value

Invisibly returns a vector of the node indices for the labeled nodes.

Author(s)

References

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.

See Also


phytools

Phylogenetic Tools for Comparative Biology (and Other Things)

v0.7-70
GPL (>= 2)
Authors
Liam J. Revell
Initial release
2020-9-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.