pitchforks {phyloTop} | R Documentation |
Number of pitchforks
Description
Finds the number of pitchforks in a tree. A pitchfork is considered to be a clade with three tips.
Usage
pitchforks(tree, normalise = FALSE)
Arguments
tree |
a tree of class |
normalise |
option to normalise the result, default is |
Value
An integer representing the number of pitchforks in the tree.
Author(s)
Michelle Kendall michelle.louise.kendall@gmail.com
See Also
Examples
## 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)
[Package phyloTop version 2.1.2 Index]