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

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

See also

pheatmap

Author

Nicholas Mikolajewicz