ar.clust {Rarmec} | R Documentation |
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
.
ar.clust(x, lvar=NULL, method = "complete",...)
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 |
Object of class hclust
.
David Enot dle@aber.ac.uk>
x<-USArrests ### Show variable names dimnames(x)[[2]] ### Select some interesting ones (!?) lvar<-c("Murder" , "Assault", "Rape") hc<-ar.clust(x,lvar) plot(hc)