Description Usage Arguments Value
Convenience function for sorting the rows and/or columns of a matrix based on hclust.
Given a numeric matrix, or data frame, sort rows and/or columns based on correlation distance heirarchical clustering.
1 2 | cluster(m, method = "ward.D2", correlation = "pearson",
metric = "euclidean", rows = T, cols = T)
|
m |
Numeric matrix. |
method |
Clustering method passed to hclust. Defaults to 'complete'. |
rows |
Logical. Whether to cluster rows. Defaults to TRUE. |
cols |
Logical. Whether to cluster columns. Defaults to TRUE. |
Matrix with columns and/or rows sorted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.