View source: R/utility_functions.R
miko_heatmap | R Documentation |
Wrapper for pheatmap::pheatmap() and ggplotify::as.ggplot.
miko_heatmap(
mat,
scale = "none",
symmetric_scale = T,
scale.lim = NA,
color = colorRampPalette(rev(brewer.pal(n = 7, name = "RdBu")))(100),
...
)
mat |
numeric matrix |
scale |
character indicating if the values should be centered and scaled in either the row direction or the column direction, or none. Corresponding values are "row", "column" and "none" |
symmetric_scale |
Enforce symmetrical color scale. Default is TRUE. |
scale.lim |
Apply ceiling and floor to all values in matrix. Default is NA. |
color |
vector of colors used in heatmap |
... |
additional parameters passed to pheatmap::pheatmap(...) |
Nicholas Mikolajewicz
pheatmap
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.