avgLadder: Average ladder size

View source: R/avgLadder.R

avgLadderR Documentation

Average ladder size

Description

Finds the mean size of ladders in the tree

Usage

avgLadder(tree, normalise = FALSE)

Arguments

tree

a tree of class phylo or phylo4. The tree should be binary and rooted; if not it will be coerced into a binary rooted tree using multi2di, if possible.

normalise

option to normalise the result, default is FALSE

Value

The mean ladder size

Author(s)

Michelle Kendall michelle.louise.kendall@gmail.com

See Also

ladderSizes

Examples

## Find the average ladder size in a random tree with 20 tips:
tree <- rtree(20)
plot(tree)
avgLadder(tree)
# and the normalised average ladder size:
avgLadder(tree, normalise=TRUE)



MichelleKendall/phyloTop documentation built on Feb. 1, 2023, 8:07 a.m.