View source: R/noded_with_condition.R
which_leaf | R Documentation |
Gives a vector as the number of nodes (nnodes), which gives a TRUE when a node is a leaf.
which_leaf(dend, ...)
dend |
a dendrogram dend |
... |
ignored. |
A logical vector with the length of nnodes, which gives a TRUE when a node is a leaf.
noded_with_condition, is.leaf, nnodes
## Not run:
library(dendextend)
# Getting the dend dend
set.seed(23235)
ss <- sample(1:150, 10)
dend <- iris[ss, -5] %>%
dist() %>%
hclust() %>%
as.dendrogram()
dend %>% plot()
which_leaf(dend)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.