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

get.treepos

Get position or node of a plotted tree interactively


Description

Both functions return the phylogenetic position of a mouse click on a plotted tree.

get.treepos returns the index of the node at the end of the selected edge, along with the branch distance to that node.

getnode simply returns the closest node to the user mouse click.

Usage

get.treepos(message=TRUE, ...)
getnode(...)

Arguments

message

for get.treepos, a logical value indicating whether or not to print an instructional message.

...

optional arguments.

Details

Both functions are primarily meant to be used internally by other phytools functions.

Value

A list for get.treepos and a node number for getnode.

Author(s)

References

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


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.