pitchforks | R Documentation |
Finds the number of pitchforks in a tree. A pitchfork is considered to be a clade with three tips.
pitchforks(tree, normalise = FALSE)
tree |
a tree of class |
normalise |
option to normalise the result, default is |
An integer representing the number of pitchforks in the tree.
Michelle Kendall michelle.louise.kendall@gmail.com
configShow
## Find the number of pitchforks in a random tree with 20 tips: tree <- rtree(20) plot(tree) pitchforks(tree) # and the normalised pitchfork number: pitchforks(tree, normalise=TRUE) ## Note that the function configShow can be used to highlight the pitchforks in the tree: configShow(tree, 3, edge.width=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.