R: Get nodePar of dendrogram's leaves

get_leaves_nodePar {dendextend} | R Documentation

## Get nodePar of dendrogram's leaves

### Description

Get the nodePar attributes of dendrogram's leaves (includes pch, color, and cex)

### Usage

    get_leaves_nodePar(dend, simplify = FALSE, ...)

### Arguments

`dend` | a dendrogram object
`simplify` | logical (default is FALSE). If TRUE, then the return vector is after using `unlist` on it.
`...` | not used

### Value

A list (or a vector) with the dendrogram's leaves nodePar attribute

### See Also

get_nodes_attr, assign_values_to_leaves_nodePar, labels_colors get_leaves_edgePar

### Examples

    # define dendrogram object to play with:
    hc <- hclust(dist(USArrests[1:3,]), "ave")
    dend <- as.dendrogram(hc)

    # get_leaves_attr(dend) # error :)
    get_leaves_nodePar(dend)
    labels_colors(dend) <- 1:3
    get_leaves_nodePar(dend)

    dend <- assign_values_to_leaves_nodePar(dend, 2, "lab.cex")
    get_leaves_nodePar(dend)

    plot(dend)

[Package dendextend version 1.8.0 Index]