Learn R Programming

dendextend (version 0.18.3)

distinct_edges: Finds the edges present in the first tree but not in the second

Description

Finds the edges present in the first tree but not in the second

Usage

distinct_edges(x, y, ...)

Arguments

x
a dendrogram to find unique edges in
y
a dendrogram to compare with
...
Ignored.

Value

  • A numeric vector of edge ids for the first tree (x) that are not present in the second tree (y).

source

A dendrogram implementation for distinct.edges from the {distory} package

See Also

distinct_edges, highlight_distinct_edges, dist.dendlist, tanglegram distinct.edges

Examples

Run this code
x <- 1:5 %>% dist %>% hclust %>% as.dendrogram
y <- set(x, "labels", 5:1)
distinct_edges(x, y)
distinct_edges(y, x)
dend_diff(x, y)

Run the code above in your browser using DataLab