SingleTaxonTree() creates a phylogenetic "tree" that contains a single
taxon.
ZeroTaxonTree() creates an empty phylo object with zero leaves or edges.
Value
SingleTaxonTree() returns a phylo object containing a single
tip with the specified label.
ZeroTaxonTree() returns an empty phylo object.
See also
Other tree manipulation:
AddTip(),
CollapseNode(),
ConsensusWithout(),
DropTip(),
ImposeConstraint(),
KeptPaths(),
KeptVerts(),
LeafLabelInterchange(),
MakeTreeBinary(),
Renumber(),
RenumberTips(),
RenumberTree(),
RootTree(),
SortTree(),
Subtree(),
TipTimedTree()
Other tree generation functions:
ConstrainedNJ(),
GenerateTree,
NJTree(),
TreeNumber
Examples
SingleTaxonTree("Homo_sapiens")
#>
#> Phylogenetic tree with 1 tip and 1 internal node.
#>
#> Tip label:
#> Homo_sapiens
#>
#> Rooted; no branch length.
plot(SingleTaxonTree("root") + BalancedTree(4))
ZeroTaxonTree()
#>
#> Phylogenetic tree with 0 tips and 0 internal nodes.
#>
#> Tip labels:
#>
#>
#> Rooted; no branch length.