get_clades: Get descendant nodes of phylogeny at a given time depth

Description Usage Arguments Value References Examples

View source: R/get_clades.R

Description

get_clades returns the tips that descend from a given node or time depth on a dated phylogenetic tree.

Usage

1
get_clades(tree, cut = NULL, k = NULL)

Arguments

tree

is a dated phylogenetic tree with branch lengths stored as a phylo object (as in the ape package).

cut

the slice time

k

number of slices

Value

A list of descendants

References

Schliep, K.P. (2010) phangorn: phylogenetic analysis in R. Bioinformatics 27: 592–593.

Examples

1
2
3
4
5
6
require(ape)
data(bird.orders)
plot(bird.orders)
axisPhylo(side = 1)
abline(v=28-23) # the root is here at 28
get_clades(bird.orders, 23)

phyloregion documentation built on May 1, 2021, 9:06 a.m.