factorise.tree: 'factorise.tree' Thin species on a large phylogeny, making it...

Description Usage Arguments Details Value Author(s) Examples

View source: R/phylo.plots.R

Description

Useful if you do a lot of large-phylogeny plotting, consider using in concert with cartoon.plot

Usage

1
factorise.tree(tree, scale.factor = 0.5)

Arguments

tree

ape::phylo phylogeny to be 'factorised'

scale.factor

multiplier for the number of species within a terminal polytomy. E.g., 0.1 means each terminal polytomy will be roughly 10% its current size

Details

Thins out additional species, making a phylogeny smaller by reducing the size of each terminal polytomy by scale.factor

Value

List where first element is the factorised phylogeny, the second the tips that were dropped from each node (on the original tree; I can't guarantee the structure of the returned tree)

Author(s)

Will Pearse

Examples

1
2
3
4
5
6
## Not run: 
tree <- read.tree(text="((A,B,C,D,E),F);")
t <- factorise.tree(tree, 0.5)
plot(t$tree)

## End(Not run)

willpearse/willeerd documentation built on May 4, 2019, 6:27 a.m.