Skip to contents

SingleTaxonTree() creates a phylogenetic "tree" that contains a single taxon. ZeroTaxonTree() creates an empty phylo object with zero leaves or edges.

Usage

SingleTaxonTree(label = "t1")

ZeroTaxonTree()

Arguments

label

a character vector specifying the label of the tip.

Value

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

ZeroTaxonTree() returns an empty phylo object.

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.