if (FALSE) {
data("DataOrnithodirans")
DataOrnithodirans$treedino->treedino
## Case 1. change the topology and the branch lengths for the entire tree
swapONE(tree=treedino,si=0.5,si2=0.5,plot.swap=FALSE)
## Case 2. change the topology and the branch lengths of the
## tree by keeping the monophyly of a specific clade
swapONE(tree=treedino,node=422,si=0.5,si2=0.5,plot.swap=FALSE)
}
Run the code above in your browser using DataLab