remove_leaves_nodePar: Remove all nodePar values from a dendrogram's leaves

View source: R/attr_access.R

remove_leaves_nodeParR Documentation

Remove all nodePar values from a dendrogram's leaves

Description

Go through the dendrogram leaves and remove its nodePar.

Usage

remove_leaves_nodePar(dend, ...)

Arguments

dend

a dendrogram object

...

not used

Value

A dendrogram, after removing the nodePar attribute in all of its leaves,

See Also

get_leaves_attr, assign_values_to_leaves_nodePar

Examples


## Not run: 

dend <- USArrests[1:5, ] %>%
  dist() %>%
  hclust() %>%
  as.dendrogram()

dend <- color_labels(dend, 3)
par(mfrow = c(1, 2))
plot(dend)
plot(remove_leaves_nodePar(dend))


get_leaves_attr(dend, "nodePar")
get_leaves_attr(remove_leaves_nodePar(dend), "nodePar")

## End(Not run)


dendextend documentation built on Oct. 13, 2024, 1:06 a.m.