scaleTree.PhyloSim: Scale the branch lengths of a phylo object aggragted by a...

Description Usage Arguments Value Author(s) See Also Examples

Description

Scale the branch lengths of a phylo object aggragted by a PhyloSim object. This method multiples all the edge lengths by the specified factor.

Usage

1
2
## S3 method for class 'PhyloSim'
scaleTree(this, factor, ...)

Arguments

this

A PhyloSim object.

factor

A numeric vector of length one.

...

Not used.

Value

The PhyloSim object (invisible).

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see PhyloSim.

Examples

1
2
3
4
5
6
7
8
9
	# 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
 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.