View source: R/nodeDepthFrac.R
nodeDepthFrac | R Documentation |
Calculate the fraction of nodes with a depth greater than or equal to a given threshold.
nodeDepthFrac(tree, threshold)
tree |
a tree of class |
threshold |
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).
Michelle Kendall michelle.louise.kendall@gmail.com
nodeDepth
## Find the fraction of nodes with a depth of 5 or more, in a random tree with 20 tips: tree <- rtree(20) tree$edge.length <- rep(1,38) # so that the depths are easier to view in a plot plot(tree) nodeDepthFrac(tree,threshold=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.