JackLabels | R Documentation |
Label nodes with jackknife support values
JackLabels(
tree,
jackTrees,
plot = TRUE,
add = FALSE,
adj = 0,
col = NULL,
frame = "none",
pos = 2L,
...
)
tree |
A tree of class |
jackTrees |
A list or |
plot |
Logical specifying whether to plot results; if |
add |
Logical specifying whether to add the labels to an existing plot. |
adj , col , frame , pos , ... |
Parameters to pass to |
A named vector specifying the proportion of jackknife trees
consistent with each node in tree
, as plotted.
If plot = FALSE
, blank entries are included corresponding to nodes
that do not require labelling; the return value is in the value required
by phylo$node.label
.
Martin R. Smith (martin.smith@durham.ac.uk)
Jackknife()
: Generate trees by jackknife resampling
Other split support functions:
Jackknife()
,
MaximizeParsimony()
,
SiteConcordance
library("TreeTools", quietly = TRUE) # for as.phylo
# jackTrees will usually be generated with Jackknife(), but for simplicity:
jackTrees <- as.phylo(1:100, 8)
tree <- as.phylo(0, 8)
JackLabels(tree, jackTrees)
tree$node.label <- JackLabels(tree, jackTrees, plot = FALSE)
# Write the labelled tree to screen
ape::write.tree(tree)
# Write labelled trees to a nexus file:
# write.nexus(tree, file = filename)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.