rescale.rooted.tree {phyclust} | R Documentation |
This function rescaled the input rooted tree height by a scale.height.
rescale.rooted.tree(rooted.tree, scale.height = 1)
rooted.tree |
a rooted tree in |
scale.height |
a scale to all branch lengths. |
The rooted.tree
should be in a phylo
class of ape,
and may be created by ms
.
scale.height
is a positive number multiplying on the lengths of
all branches of the rooted tree.
Return a rooted tree in Class phylo
with scaled branches.
Wei-Chen Chen wccsnow@gmail.com
Phylogenetic Clustering Website: http://snoweye.github.io/phyclust/
ms
,
read.tree
,
as.phylo
,
get.rooted.tree.height
.
## Not run: library(phyclust, quiet = TRUE) set.seed(1234) ret.ms <- ms(5, 1, opts = paste("-T", sep = " ")) tree.ms <- read.tree(text = ret.ms[3]) get.rooted.tree.height(tree.ms) tree.scaled <- rescale.rooted.tree(tree.ms, scale.height = 2) get.rooted.tree.height(tree.scaled) ## End(Not run)