get.treepos | R Documentation |
Return the phylogenetic position of a mouse click on a plotted tree.
get.treepos(message=TRUE, ...)
getnode(...)
message |
for |
... |
optional arguments. |
Both get.treepos
and getnode
are primarily meant for internal use in other phytools functions.
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.
A list for get.treepos
and a node number for getnode
.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.