Learn R Programming

ggphylo (version 0.1)

tree.leaves.beneath: Returns the number of leaves beneath a node in the tree (where a leaf node is defined as having 1 leaf beneath)

Description

Returns the number of leaves beneath a node in the tree (where a leaf node is defined as having 1 leaf beneath)

Usage

tree.leaves.beneath(phylo, node)

Arguments

phylo
input phylo object
node
integer, the index of the node to count leaves beneath