downto.tree: Hierarchical Tree Generator

Description Usage Arguments Examples

View source: R/downto.tree.R

Description

Generates a phylogenetic tree from a taxon down to a chosen lower taxon.

Usage

1
downto.tree(taxon, downto, key = NULL, db = "ncbi")

Arguments

taxon

The higher taxon from which the tree will start. (i.e. Family, Genus)

downto

The lowest level of taxonomy wanted. Must be lower than the one in taxon argument. Only species can be outputed from the Mammals tree.

key

API key. To create one use taxize::use_entrez().

db

Database used. Default is "ncbi". For possible datbases see ?taxize::downstream

Examples

1
2
3
4
5
## Not run: 
#Choose a certain taxon and the level you want the tree to stop
downto.tree("Cervidae", "species")

## End(Not run)

aptg documentation built on Jan. 13, 2021, 5:05 a.m.