taxonTree {SoilTaxonomy} | R Documentation |
Create a data.tree
Object from Taxon Names
Description
This function takes one or more taxon names and taxonomic levels as input.
Usage
taxonTree(
taxon,
level = c("order", "suborder", "greatgroup", "subgroup"),
root = "Soil Taxonomy",
verbose = TRUE,
special.chars = c("|--", "|", "|", "-"),
file = "",
...
)
Arguments
taxon |
A vector of taxon names |
level |
One or more of: |
root |
Label for root node. Default: |
verbose |
Print tree output? Default: |
special.chars |
Characters used to print the tree to console. Default: |
file |
Optional: path to output file. Default: |
... |
Additional arguments to |
Details
A subclass of data.tree Node
object is returned. This object has a custom print()
method
Value
A SoilTaxonNode
(subclass of data.tree
Node
) object (invisibly). A text representation of the tree is printed to stdout when verbose=TRUE
.
Examples
# hapludults and hapludalfs (to subgroup level)
taxonTree(c("hapludults", "hapludalfs"))
# alfisols suborders and great groups
taxonTree("alfisols", root = "Alfisols", level = c("suborder", "greatgroup"))