hclustvar2 | R Documentation |
Ascendant hierarchical clustering of a set of variables from a covariance/correlation matrix.
hclustvar2(x, init = NULL)
x |
a covariance or correlation matrix. |
init |
an initial partition (a vector of integers indicating the cluster to which each variable is allocated). |
height |
a set of p-1 non-decreasing real values: the values of the aggregation criterion. |
clusmat |
a p by p matrix with group memberships where each column k corresponds to the elements of the partition in k clusters. |
merge |
a p-1 by 2 matrix. Row i of |
cutreevar
, plot.hclustvar
,
stability
data(decathlon)
x <- cor(decathlon[,1:10])
tree <- hclustvar2(x)
plot(tree, hang = -1, xlab="", sub="")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.