Group tips according to distance from the root

groupByRootDist(tree, nGroups = 15, rootTipDists = NULL)

Arguments

tree

a phylo object

nGroups

integer, the desired number of groups (default 15)

rootTipDists

numeric vector of root to tip distances in the order of tree$tip.label. If not passed, this vector is calculated by the function nodeTimes().