miko_heatmap: Function to draw ggplot heatmaps

View source: R/utility_functions.R

miko_heatmapR Documentation

Function to draw ggplot heatmaps

Description

Wrapper for pheatmap::pheatmap() and ggplotify::as.ggplot.

Usage

miko_heatmap(
  mat,
  scale = "none",
  symmetric_scale = T,
  scale.lim = NA,
  color = colorRampPalette(rev(brewer.pal(n = 7, name = "RdBu")))(100),
  ...
)

Arguments

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(...)

Author(s)

Nicholas Mikolajewicz

See Also

pheatmap


NMikolajewicz/scMiko documentation built on June 28, 2023, 1:41 p.m.