geiger (version 2.0.6.2)

subset.phylo: blending information from taxonomies and trees

Description

working with systematic reference tables and phylogenies

Usage

# S3 method for phylo
subset(x, taxonomy, rank="", ncores=1, ...)

Arguments

x

a phylogenetic tree of class 'phylo'

taxonomy

a ('matrix') linkage table between tips of the phylogeny and clades represented in the tree; rownames of 'taxonomy' should be tips found in the phylogeny

rank

a column name in 'taxonomy' at which to resample the tree (see Examples)

ncores

max number of cores to use

...

arguments to be passed to other functions (has no effect in the present context)

Examples

Run this code
# NOT RUN {
sal <- get(data(caudata))
print(head(sal$tax))

nphy <- subset(sal$phy, sal$tax, "genus", ncores=1)
plot(nphy, type="fan", cex=0.15)

# }

Run the code above in your browser using DataLab