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()
,
EnforceOutgroup()
,
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 tips and 1 internal nodes.
#>
#> Tip labels:
#> Homo_sapiens
#>
#> Rooted; no branch lengths.
plot(SingleTaxonTree("root") + BalancedTree(4))
ZeroTaxonTree()
#>
#> Phylogenetic tree with 0 tips and 0 internal nodes.
#>
#> Tip labels:
#>
#>
#> Rooted; no branch lengths.