Learn R Programming

phangorn (version 2.1.1)

addConfidences: Compare splits and add support values to an object

Description

Add support values to a splits, phylo or networx object.

Usage

addConfidences(x, y, ...) presenceAbsence(x, y) createLabel(x, y, label_y, type = "edge", nomatch = NA)

Arguments

x
an object of class splits, phylo or networx
y
an object of class splits, phylo, multiPhylo or networx
...
Further arguments passed to or from other methods.
label_y
label of y matched on x. Will be usually of length(as.splits(x)).
type
should labels returned for edges (in networx) or splits.
nomatch
default value if no match between x and y is found.

Value

The object x with added bootstrap / MCMC support values.

See Also

as.splits, as.networx, RF.dist, plot.phylo

Examples

Run this code
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