Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

addConfidences

Compare splits and add support values to an object


Description

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

Usage

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

addConfidences(x, y, ...)

## S3 method for class 'phylo'
addConfidences(x, y, ...)

presenceAbsence(x, y)

Arguments

x

an object of class splits, phylo or networx

y

an object of class splits, phylo, multiPhylo or networx

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.

...

Further arguments passed to or from other methods.

Value

The object x with added bootstrap / MCMC support values.

Author(s)

References

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

See Also

Examples

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)

phangorn

Phylogenetic Reconstruction and Analysis

v2.7.0
GPL (>= 2)
Authors
Klaus Schliep [aut, cre] (<https://orcid.org/0000-0003-2941-0161>), Emmanuel Paradis [aut] (<https://orcid.org/0000-0003-3092-2199>), Leonardo de Oliveira Martins [aut] (<https://orcid.org/0000-0001-5247-1320>), Alastair Potts [aut], Tim W. White [aut], Cyrill Stachniss [ctb], Michelle Kendall [ctb], Keren Halabi [ctb], Richel Bilderbeek [ctb], Kristin Winchell [ctb], Liam Revell [ctb], Mike Gilchrist [ctb], Jeremy Beaulieu [ctb], Brian O'Meara [ctb], Long Qu [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.