View source: R/basics_utilities.R
tree_consensus | R Documentation |
this function returns a consensus tree of the class phylo. I can be used to be saved or plot with diferent functions and pakcages
tree_consensus(trees, type, p)
trees |
an object of the class multiPhylo |
type |
a type of consensus. Default is "mcc" (Maximum Credibility Tree), but majority rule ("majority") or "strict" rules are also avaliable. In case of majority rule, the user also might use the param "p". |
p |
the proportion of concordance for some specific node. Default is 0.5, but users might change that between 0 and 1. If 1 is seted the algoritms behaves as strict rule. |
this function is an wrap of ape and phangorn packages
df <- simulate_data()
S <- renkonen(df, 100)
trees <- upgma(S)
mcc_tree <- tree_consensus(trees, "mcc")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.