Calculate the fraction of nodes with a depth greater than or equal to a given threshold.
nodeDepthFrac(tree, threshold)
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.
a threshold value for node depth.
The fraction of nodes with a depth greater than or equal to the threshold (see nodeDepth
for more details on the meaning of node depth).