Learn R Programming

dendroextras (version 0.2.3)

labels<-: Set the labels of an object

Description

Set the labels of an object

Set the labels of a dendrogram

Usage

labels(x,...) <- value

labels(x,...) <- value

Arguments

x

Object on which to set labels

...

Additional parameters passed to specific methods

value

New labels

Value

object of class dendrogram

See Also

dendrogram,labels

Examples

Run this code
# NOT RUN {
hc <- hclust(dist(USArrests), "ave")
dend <- as.dendrogram(hc)
labels(dend)<-abbreviate(labels(dend),minlength=2)
# }

Run the code above in your browser using DataLab