
Last chance! 50% off unlimited learning
Sale ends in
Add support values to a splits
, phylo
or networx
object.
createLabel(x, y, label_y, type = "edge", nomatch = NA)addConfidences(x, y, ...)
# S3 method for phylo
addConfidences(x, y, ...)
presenceAbsence(x, y)
an object of class splits
, phylo
or networx
an object of class splits
, phylo
, multiPhylo
or networx
label of y matched on x. Will be usually of length(as.splits(x)).
should labels returned for edges (in networx
) or splits.
default value if no match between x and y is found.
Further arguments passed to or from other methods.
The object x
with added bootstrap / MCMC support values.
Schliep, K., Potts, A. J., Morrison, D. A. and Grimm, G. W. (2017), Intertwining phylogenetic trees and networks. Methods Ecol Evol. 8, 1212--1220. doi:10.1111/2041-210X.12760
# NOT RUN {
data(woodmouse)
woodmouse <- phyDat(woodmouse)
tmpfile <- normalizePath(system.file("extdata/trees/RAxML_bootstrap.woodmouse", package="phangorn"))
boot_trees <- read.tree(tmpfile)
dm <- dist.ml(woodmouse)
tree <- upgma(dm)
nnet <- neighborNet(dm)
tree <- addConfidences(tree, boot_trees)
nnet <- addConfidences(nnet, boot_trees)
plot(tree, show.node.label=TRUE)
plot(nnet, "2D", show.edge.label=TRUE)
# }
Run the code above in your browser using DataLab