phylo_builder: Create a subtree with largest overlap from a species list.

Description Usage Arguments See Also Examples

Description

phylobuilder creates a subtree with largest overlap from a species list. If species in the species list are not already in the tip label, species will added at the most recent common ancestor at the genus or family level when possible.

Usage

1
phylo_builder(species, tree)

Arguments

species

A vector or matrix containing a species list

tree

a phylogenetic tree (object of class phylo)

See Also

add.tips

Examples

1
2
3
4
5
library(ape)
fdir <- system.file("extdata", package = "phyloregion")
comm <- read.community(file.path(fdir, "Korea_PRESAB_sample.csv"))
tree <- read.tree(file.path(fdir, "PhytoPhylo.tre"))
tree <- phylo_builder(colnames(comm), tree)

darunabas/bioregion documentation built on Oct. 27, 2019, 6:57 a.m.