Learn R Programming

TreeTools (version 1.8.0)

SingleTaxonTree: Generate a single taxon tree

Description

SingleTaxonTree() creates a phylogenetic "tree" that contains a single taxon.

Usage

SingleTaxonTree(label)

Value

SingleTaxonTree() returns a phylo object containing a single tip with the specified label.

Arguments

label

a character vector specifying the label of the tip.

See Also

Other tree manipulation: AddTip(), CollapseNode(), ConsensusWithout(), DropTip(), EnforceOutgroup(), ImposeConstraint(), KeptPaths(), KeptVerts(), LeafLabelInterchange(), MakeTreeBinary(), RenumberTips(), RenumberTree(), Renumber(), RootTree(), SortTree(), Subtree()

Other tree generation functions: ConstrainedNJ(), GenerateTree, NJTree(), TreeNumber

Examples

Run this code
SingleTaxonTree("Homo_sapiens")
plot(SingleTaxonTree("root") + BalancedTree(4))

Run the code above in your browser using DataLab