subset.phylo: blending information from taxonomies and trees

Description Usage Arguments Author(s) Examples

View source: R/gbresolve.R

Description

working with systematic reference tables and phylogenies

Usage

1
2
    ## S3 method for class '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)

Author(s)

JM Eastman

Examples

1
2
3
4
5
sal <- get(data(caudata))
print(head(sal$tax))

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

geiger documentation built on May 19, 2017, 7:43 a.m.

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