Description Usage Arguments Value Examples
View source: R/plot_matrix_dendrogram.R
Draws a clustered heatmap using clustering methods implemented in the popular R package pheatmap. Returns a ggplot2 object
1 2 | plot_matrix_dendrogram(matrix, scale = "row", cluster = "col",
clustering_distance = "euclidean", clustering_method = "complete")
|
matrix |
a matrix of values |
scale |
"rows" or "cols" or "none"; indicates whether values should be centered and scaled in the row direction or the column direction or none. |
cluster |
"rows" or "cols"; whether to cluster rows or columns. |
clustering_distance |
distance measure to be used. Possible values are "correlation", "euclidean", "maximum", "manhattan", "canberra", "binary", or "minkowski" (defined in dist() function.) |
clustering_method |
clustering method to be used. Accepts the same values as hclust: "ward.D", "ward.D2", "single", "complete", "average" (=UPGMA), "mcquitty" (=WPGMA), "median" (=WPGMC) or "centroid" (=UPGMC). |
a ggplot2 object
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.