Learn R Programming

phyloTop (version 1.1.1)

rootLaddDist: Root Ladder Distance

Description

Gives the length of the longest ladder starting from the root of the tree.

Usage

rootLaddDist(tree)

Arguments

tree
An object of class phylo4

Value

  • A numeric vector of size one

Details

Used by ladderDist. Otherwise not intended to be used.

See Also

ladderDist

Examples

Run this code
## Creates a random tree of class phylo4 and plots it with nodes labelled by ID
tree <- rtree4(50)
tree <- idNodeLabel(tree)
plot(tree,show.tip.label=FALSE,show.node.label=TRUE)

## Finds the length of the ladder staring from the root
rootLaddDist(tree)

Run the code above in your browser using DataLab