NJTree {TreeTools} | R Documentation |
Generate a neighbour joining tree
Description
NJTree()
generates a rooted neighbour joining tree from a phylogenetic
dataset.
Usage
NJTree(dataset, edgeLengths = FALSE, ratio = TRUE, ambig = "mean")
Arguments
dataset |
A phylogenetic data matrix of phangorn class |
edgeLengths |
Logical specifying whether to include edge lengths. |
ambig , ratio |
Settings of |
Value
NJTree
returns an object of class phylo
.
Author(s)
Martin R. Smith (martin.smith@durham.ac.uk)
See Also
Other tree generation functions:
ConstrainedNJ()
,
GenerateTree
,
TreeNumber
,
TrivialTree
Examples
data("Lobo")
NJTree(Lobo.phy)
[Package TreeTools version 1.12.0 Index]