Learn R Programming

dendextend (version 1.13.4)

remove_nodes_nodePar: Remove all nodePar values from a dendrogram's nodes

Description

Go through the dendrogram nodes and remove its nodePar

Usage

remove_nodes_nodePar(dend, ...)

Arguments

dend

a dendrogram object

...

not used

Value

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

See Also

get_root_branches_attr, assign_values_to_branches_edgePar

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
dend <- USArrests[1:5, ] %>%
  dist() %>%
  hclust() %>%
  as.dendrogram()
dend <- color_branches(dend, 3)
par(mfrow = c(1, 2))
plot(dend)
plot(remove_branches_edgePar(dend))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab