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