powered by
Scale the branch lengths of a phylo object aggragted by a PhyloSim object. This method multiples all the edge lengths by the specified factor.
# S3 method for PhyloSim scaleTree(this, factor, ...)
A PhyloSim object.
A numeric vector of length one.
Not used.
The PhyloSim object (invisible).
For more information see PhyloSim.
PhyloSim
# NOT RUN { # create a PhyloSim object sim<-PhyloSim(phylo=rcoal(5)); # get the tree length sim$treeLength # scale tree scaleTree(sim,10) # get the scaled tree length sim$treeLength # }
Run the code above in your browser using DataLab