Description Usage Arguments Details Value Author(s) Examples
Useful if you do a lot of large-phylogeny plotting, consider using
in concert with cartoon.plot
1 | factorise.tree(tree, scale.factor = 0.5)
|
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 |
Thins out additional species, making a phylogeny smaller by reducing the size of each terminal polytomy by scale.factor
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)
Will Pearse
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.