AdditionTree {TreeSearch} | R Documentation |
Addition tree
Description
Generates a starting tree by adding each taxon in turn to the most parsimonious location.
Usage
AdditionTree(dataset, concavity = Inf, constraint, sequence)
Arguments
dataset |
A phylogenetic data matrix of phangorn class
|
concavity |
Numeric specifying concavity constant for implied step
weighting.
The most appropriate value will depend on the dataset, but values around
10–15 often perform well (Goloboff et al. 2018; Smith 2019).
The character string "profile" employs an approximation of profile parsimony
(Faith and Trueman 2001).
Set as |
constraint |
Either an object of class |
sequence |
Character or numeric vector listing sequence in which to add taxa. Randomized if not provided. |
Value
AdditionTree()
returns a tree of class phylo
, rooted on
sequence[1]
.
Author(s)
Martin R. Smith (martin.smith@durham.ac.uk)
See Also
Impose a constraint: TreeTools::ImposeConstraint()
Neighbour-joining trees: TreeTools::NJTree()
;
TreeTools::ConstrainedNJ()
Other tree generation functions:
RandomMorphyTree()
Examples
data("inapplicable.phyData", package = "TreeSearch")
AdditionTree(inapplicable.phyData[["Longrich2010"]], concavity = 10)