R/heatmap_heatmaply.R

Defines functions heatmap_heatmaply

heatmap_heatmaply <- function(X,
                              draw_cellnote=TRUE,
                              cellnote_textposition="middle center",
                              ...){
  requireNamespace("heatmaply")
  requireNamespace("viridis")
  # https://github.com/talgalili/heatmaply/issues/11 
  heatmaply::heatmaply(X, 
                       colors=viridis::magma(n=256),
                       draw_cellnote=draw_cellnote,
                       cellnote_textposition=cellnote_textposition,
                       ...)
}
neurogenomics/EpiCompare documentation built on Oct. 18, 2024, 11:04 p.m.