MakeTreeData(MyHiers)
AutofillTaxonNames(TreeData)
MakeHierarchyTree(MyHiers, missingData=NULL, includeNodeLabels=TRUE, userRanks=NULL)
ReturnTaxSet(Taxon, TreeData)
NodeLabelList(MyHiers, label="all", missingData)
MergeTaxonomies(i, j)
NodeLabelList
MakeTreeData
returns a data frame with data for use in MakeHierarchyTree
function, but can also be used independently to examine the hierarchical structure. AutofillTaxonNames
is an internal function that deals with missing internal data in TreeData. If taxa are of varying hierarchical ranks (for example a mix of genera and species) then tips can not be aligned in the tree. You will need to select what data you would like to drop from the analysis; for example, either taxa with missing species information OR all species names that will then make a tree of genera. MakeHierarchyTree
returns taxonomic tree in the class phylo. ReturnTaxSet
will return the tree tips for the taxonomic group requested, this is mostly an internal function for creating node labels. MakeNodeLabels
will return a list of tip labels per internal node. This can be used to create node labels to plot on the tree. MergeTaxonomies
will merge two taxonomies into a single list that preserves hierarchical structure. It is mostly for internal use.
ProviderCount
DownloadHierarchy
MakeEdgeLabels
data(MyHiers)
TreeData <- MakeTreeData(MyHiers)
Tree <- MakeHierarchyTree(MyHiers, includeNodeLabels=TRUE)
labels <- NodeLabelList(MyHiers, "all")
plot(Tree, show.node.label=TRUE)
plot(Tree, "c", show.node.label=TRUE, adj=0.5, font=3, edge.color="gray",
tip.color=rainbow(10))
Run the code above in your browser using DataLab