NJTree() generates a rooted neighbour joining tree from a phylogenetic
dataset.
Arguments
- dataset
A phylogenetic data matrix of phangorn class
phyDat, whose names correspond to the labels of any accompanying tree.- edgeLengths
Logical specifying whether to include edge lengths.
- ambig, ratio
Settings of
ambigandratioto be used when computingHamming()distances between sequences.
See also
Other tree generation functions:
ConstrainedNJ(),
GenerateTree,
TreeNumber,
TrivialTree
Examples
data("Lobo")
NJTree(Lobo.phy)
#>
#> Phylogenetic tree with 48 tips and 47 internal nodes.
#>
#> Tip labels:
#> Tubiluchus_Priapulida, Cricocosmia, Aysheaia, Siberion, Onychodictyon_ferox, Onychodictyon_gracilis, ...
#>
#> Rooted; no branch length.