R: Retrieve/assign cex to the labels of a dendrogram

labels_cex {dendextend} | R Documentation

## Retrieve/assign cex to the labels of a dendrogram

### Description

Retrieve/assign cex to the labels of a dendrogram

### Usage

    labels_cex(dend, ...)

    labels_cex(dend, ...) <- value

### Arguments

`dend` | a dendrogram object
`...` | not used
`value` | a vector of cex to be used as new label's size for the dendrogram

### Value

A vector with the dendrogram's labels sizes (NULL if none are supplied).

### Examples

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

    # Defaults:
    labels_cex(dend)
    plot(dend)

    # let's add some color:
    labels_cex(dend) <- 1:3
    labels_cex(dend)
    plot(dend)

    labels_cex(dend) <- 1
    labels_cex(dend)
    plot(dend)

[Package dendextend version 1.8.0 Index]