Debian Codegraph @

man/distinct_edges.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/distinct_edges.R
3 \name{distinct_edges}
4 \alias{distinct_edges}
5 \title{Finds distinct edges in one tree compared to another}
6 \source{
7 A \link{dendrogram} implementation for \link[distory]{distinct.edges} from the {distory} package
8 }
9 \usage{
10 distinct_edges(dend, dend2, ...)
11 }
12 \arguments{
13 \item{dend}{a dendrogram to find unique edges in}
14
15 \item{dend2}{a dendrogram to compare with}
16
17 \item{...}{Ignored.}
18 }
19 \value{
20 A numeric vector of edge ids for the first tree (dend) that are not present in the second tree (dend2).
21 }
22 \description{
23 Finds the edges present in the first tree but not in the second
24 }
25 \examples{
26
27 x <- 1:5 \%>\%
28 dist() \%>\%
29 hclust() \%>\%
30 as.dendrogram()
31 y <- set(x, "labels", 5:1)
32 distinct_edges(x, y)
33 distinct_edges(y, x)
34 dend_diff(x, y)
35 # tanglegram(x, y)
36 }
37 \seealso{
38 \link{distinct_edges}, \link{highlight_distinct_edges},
39 \link{dist.dendlist}, \link{tanglegram}
40 \link[distory]{distinct.edges}
41 }