ladderSizes | R Documentation |
Finds the sizes and positions of ladders in the tree.
A ladder is here defined to be a series of consecutive nodes in the tree,
each of which has exactly one tip child (as counted by ILnumber
).
The size of the ladder is given by the number of nodes in the chain.
ladderSizes(tree)
tree |
a tree of class |
A list of:
ladderSizes the sizes of ladders in the tree
ladderNodes the ladder nodes in the tree
ladderEdges the edges between ladder nodes of the tree
Caroline Colijn c.colijn@imperial.ac.uk
Michelle Kendall michelle.louise.kendall@gmail.com
ILnumber
, ladderShow
## Find ladder sizes in a random tree with 20 tips: tree <- rtree(20) plot(tree) ladderSizes(tree) # note that the ladders can be highlighted in a plot using ladderShow: ladderShow(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.