splitTop: Split topology

Description Usage Arguments Value Author(s) Examples

View source: R/splitTop.R

Description

For each node at a given distance from the root, this function finds the size of its induced subclade, i.e. its number of tip descendants.

Usage

1
splitTop(tree, dist)

Arguments

tree

a tree of class phylo or phylo4. The tree should be binary and rooted; if not it will be coerced into a binary rooted tree using multi2di, if possible.

dist

integer distance of nodes of interest from the root.

Value

A vector of integers, each corresponding to the clade size of a node at the given distance from the root. The clade sizes are given in ascending order and each is labelled by its node name or number. This vector can be considered as a partition of the tips or the "split topology" of the tree at a given depth.

Author(s)

Michelle Kendall michelle.louise.kendall@gmail.com

Michael Boyd mboyd855@gmail.com

Examples

1
2
3
4
## Find the split topology of a random tree with 20 tips, at a distance 2 from the root:
tree <- rtree(20)
plot(tree)
splitTop(tree,2)

phyloTop documentation built on May 19, 2017, 6:37 p.m.

Search within the phyloTop package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.