Performs hierarchical clustering of a data matrix X. To cluster both rows and columns, call it twice with clust="col"and clust="row" respectively. The option reorder=TRUE leads to a nice arrangement of the clusters from left to right to ensure neighbors are similar to each other.
1 2 |
X |
matrix |
clust |
String. Perform clustering of rows or columns, can be by column: "col" (default) or by row: "row". |
distance |
String. Distance measure for hierarchical clustering, can be"euclidean" (default), "pearson", "spearman". |
linkage |
String. Method for clusterting, can be "complete" (default), "average", "single", "ward". |
reorder |
Boolean. When TRUE, arranges the clustered items in optimized order. |
ncomp |
Integer. Default NA. If set to integer k, only the first k principal components are used in clustering |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.