Learn R Programming

ggphylo (version 0.1)

order.nodes.visually: Returns the indices of all nodes in the tree, arranged in the order in which they would be displayed in a 2-dimensional phylogram plot. In other words, the parent node of two leaf nodes will be placed directly in between its two children, since the parent node is usually placed at the midpoint between two leaf nodes in a plot.

Description

Returns the indices of all nodes in the tree, arranged in the order in which they would be displayed in a 2-dimensional phylogram plot. In other words, the parent node of two leaf nodes will be placed directly in between its two children, since the parent node is usually placed at the midpoint between two leaf nodes in a plot.

Usage

order.nodes.visually(phylo)

Arguments

phylo,
input phylo object

Value

integer vector, the indices of all nodes in the tree, arranged in "visual" order.