tree.normalize.branchlengths: Normalizes the branch lengths of a tree for cleaner...

Description Usage Arguments Value Examples

Description

Normalizes the branch lengths of a tree for cleaner 2-dimensional plotting.

Usage

1
  tree.normalize.branchlengths(phylo, push.to.tips = FALSE)

Arguments

phylo

input phylo object

push.to.tips

boolean, determines the branch length given to inner clades of the tree. When TRUE, inner clades are given short external branches and long internal branches (i.e. the clade is pushed to the tip); when FALSE, inner clades are given short internal branches (i.e. pushed to the root). See the examples for a demonstration of this difference.

Value

a phylo object with altered branch lengths

Examples

1
2
3
4
set.seed(1); x <- rcoal(15)
x1 <- tree.normalize.branchlengths(x, push.to.tips=TRUE)
x2 <- tree.normalize.branchlengths(x, push.to.tips=FALSE)
ggphylo(list('push.to.tips=TRUE'=x1, 'push.to.tips=FALSE'=x2), do.plot=TRUE)

gjuggler/ggphylo documentation built on May 17, 2019, 6:05 a.m.