get_clades
returns the tips that descend from a given node or time
depth on a dated phylogenetic tree.
get_clades(tree, cut = NULL, k = NULL)
A list of descendants
is a dated phylogenetic tree with branch lengths stored
as a phylo object (as in the ape
package).
the slice time
number of slices
Schliep, K.P. (2010) phangorn: phylogenetic analysis in R. Bioinformatics 27: 592–593.
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)
Run the code above in your browser using DataLab