1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/distinct_edges.R
\name{partition_leaves}
\alias{partition_leaves}
\title{A list with labels for each subtree (edge)}
\source{
A \link{dendrogram} implementation for \link[distory]{partition.leaves} from the {distory} package
}
\usage{
partition_leaves(dend, ...)
}
\arguments{
\item{dend}{a dendrogram}
\item{...}{Ignored.}
}
\value{
A list with the labels for each of the nodes in the dendrogram.
}
\description{
Returns the set of all bipartitions from all edges, that is: a list with the labels
for each of the nodes in the dendrogram.
}
\examples{
x <- 1:3 \%>\%
dist() \%>\%
hclust() \%>\%
as.dendrogram()
plot(x)
partition_leaves(x)
\dontrun{
set.seed(23235)
ss <- sample(1:150, 10)
dend1 <- iris[ss, -5] \%>\%
dist() \%>\%
hclust("com") \%>\%
as.dendrogram()
dend2 <- iris[ss, -5] \%>\%
dist() \%>\%
hclust("single") \%>\%
as.dendrogram()
partition_leaves(dend1)
partition_leaves(dend2)
}
}
\seealso{
\link{distinct_edges}, \link{highlight_distinct_edges},
\link{dist.dendlist}, \link{tanglegram},
\link[distory]{partition.leaves}
}
|