View source: R/cluster_matrix.R
cluster_matrix | R Documentation |
cluster_matrix
hierarchically clusters the supplied matrix by row or column
or both
cluster_matrix(
mat,
by_row = TRUE,
by_col = FALSE,
scale = TRUE,
dist_method = "pearson",
...
)
mat |
Matrix of counts to cluster |
by_row |
logical - whether to cluster the rows of the matrix |
by_col |
logical - whether to cluster the columns of the matrix |
scale |
logical indicating whether to center and scale the data |
dist_method |
character method for ceating the distance matrix |
... |
other arguments passed to hclust |
reordered matrix based on clustering
set.seed(1452)
cluster_matrix( matrix(rnorm(100), ncol = 5) )
cluster_matrix( matrix(rnorm(100), ncol = 5), by_row = FALSE, by_col = TRUE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.