Description Usage Arguments Details Value See Also Examples
View source: R/pheatmap_translate.R
Translate pheatmap::pheatmap to ComplexHeatmap::Heatmap
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | pheatmap(mat,
color = colorRampPalette(rev(brewer.pal(n = 7, name = "RdYlBu")))(100),
kmeans_k = NA,
breaks = NA,
border_color = "grey60",
cellwidth = NA,
cellheight = NA,
scale = "none",
cluster_rows = TRUE,
cluster_cols = TRUE,
clustering_distance_rows = "euclidean",
clustering_distance_cols = "euclidean",
clustering_method = "complete",
clustering_callback = NA,
cutree_rows = NA,
cutree_cols = NA,
treeheight_row = ifelse(class(cluster_rows) == "hclust" || cluster_rows, 50, 0),
treeheight_col = ifelse(class(cluster_cols) == "hclust" || cluster_cols, 50, 0),
legend = TRUE,
legend_breaks = NA,
legend_labels = NA,
annotation_row = NA,
annotation_col = NA,
annotation = NA,
annotation_colors = NA,
annotation_legend = TRUE,
annotation_names_row = TRUE,
annotation_names_col = TRUE,
drop_levels = TRUE,
show_rownames = TRUE,
show_colnames = TRUE,
main = NA,
fontsize = 10,
fontsize_row = fontsize,
fontsize_col = fontsize,
angle_col = c("270", "0", "45", "90", "315"),
display_numbers = FALSE,
number_format = "%.2f",
number_color = "grey30",
fontsize_number = 0.8 * fontsize,
gaps_row = NULL,
gaps_col = NULL,
labels_row = NULL,
labels_col = NULL,
filename = NA,
width = NA,
height = NA,
silent = FALSE,
na_col = "#DDDDDD",
name = "Matrix",
...)
|
mat |
The input matrix. |
color |
The same as in |
kmeans_k |
Not supported. |
breaks |
The same as in |
border_color |
The same as in |
cellwidth |
The same as in |
cellheight |
The same as in |
scale |
The same as in |
cluster_rows |
The same as in |
cluster_cols |
The same as in |
clustering_distance_rows |
The same as in |
clustering_distance_cols |
The same as in |
clustering_method |
The same as in |
clustering_callback |
The same as in |
cutree_rows |
The same as in |
cutree_cols |
The same as in |
treeheight_row |
The same as in |
treeheight_col |
The same as in |
legend |
The same as in |
legend_breaks |
The same as in |
legend_labels |
The same as in |
annotation_row |
The same as in |
annotation_col |
The same as in |
annotation |
The same as in |
annotation_colors |
The same as in |
annotation_legend |
The same as in |
annotation_names_row |
The same as in |
annotation_names_col |
The same as in |
drop_levels |
Enforced to be |
show_rownames |
The same as in |
show_colnames |
The same as in |
main |
The same as in |
fontsize |
The same as in |
fontsize_row |
The same as in |
fontsize_col |
The same as in |
angle_col |
The same as in |
display_numbers |
The same as in |
number_format |
The same as in |
number_color |
The same as in |
fontsize_number |
The same as in |
gaps_row |
The same as in |
gaps_col |
The same as in |
labels_row |
The same as in |
labels_col |
The same as in |
filename |
Not supported. |
width |
Not supported. |
height |
Not supported. |
silent |
Not supported. |
na_col |
The same as in |
name |
Name of the heatmap. This argument is passed to |
... |
Other arguments passed to |
See https://jokergoo.github.io/2020/05/06/translate-from-pheatmap-to-complexheatmap/
A Heatmap-class
object.
compare_pheatmap
that ompares heatmaps between pheatmap::pheatmap()
and ComplexHeatmap::pheatmap()
.
1 2 | # There is no example
NULL
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.