Set the labels of an object

Share:

Description

Set the labels of an object

Set the labels of a dendrogram

Usage

1
2
3
labels(x,...) <- value

labels(x,...) <- value

Arguments

x

Object on which to set labels

value

New labels

...

Additional parameters passed to specific methods

Value

object of class dendrogram

Author(s)

jefferis

See Also

dendrogram,labels

Examples

1
2
3
hc <- hclust(dist(USArrests), "ave")
dend <- as.dendrogram(hc)
labels(dend)<-abbreviate(labels(dend),minlength=2)