cSPR | R Documentation |
cSPR()
expects a tree rooted on a single tip.cSPR()
expects a tree rooted on a single tip.
cSPR(tree, whichMove = NULL)
tree |
A tree of class |
whichMove |
Integer specifying which SPR move index to perform. |
Martin R. Smith (martin.smith@durham.ac.uk)
tree <- TreeTools::BalancedTree(8)
# Tree must be rooted on leaf
tree <- TreeTools::RootTree(tree, 1)
# Random rearrangement
cSPR(tree)
# Specific rearrangement
cSPR(tree, 9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.