subset.phylo | R Documentation |
working with systematic reference tables and phylogenies
## S3 method for class 'phylo'
subset(x, taxonomy, rank="", ncores=1, ...)
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) |
JM Eastman
## 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.