ar.clust {Rarmec}R Documentation

Wrapper for clustering signals

Description

Wrapper for plotting the HCA clustering a subset of variables of a matrix using 1-abs(cor) as a dissimilarity metric. Variables entered are in a form of a list corresponding to variables names in the matrix rather than their ids. Variables are ordered as for the heatmap of ar.corplot.

Usage

ar.clust(x, lvar=NULL, method = "complete",...)

Arguments

x Original matrix
lvar List of variables - if NULL all variables enter the clustering
method Method to used in hclust
... Arguments to be passed to dendrogram

Value

Object of class hclust.

Author(s)

David Enot dle@aber.ac.uk>

See Also

hclust

Examples


x<-USArrests
### Show variable names
dimnames(x)[[2]]

### Select some interesting ones (!?)
lvar<-c("Murder" , "Assault", "Rape")

hc<-ar.clust(x,lvar)
plot(hc)


[Package Rarmec version 1.0 Index]