randomGroupedHeatmap: randomGroupedHeatmap

View source: R/heatmaps.R

randomGroupedHeatmapR Documentation

randomGroupedHeatmap

Description

generate a random grouped heatmap using ComplexHeatmap.

Usage

randomGroupedHeatmap(
  n.row = 20,
  n.col = 6,
  ngrps.row = 2,
  ngrps.col = 3,
  cols = NULL,
  ...
)

Arguments

n.row

number of rows

n.col

number of columns

ngrps.row

number of groups to group rows into

ngrps.col

number of groups to group columns into

cols

color scheme. Should be a color character vector. If NULL a default color scheme will be used.

...

parameters passed on to ComplexHeatmap::Heatmap

Value

a ComplexHeatmap::Heatmap object containing the heatmap

Author(s)

Fabian Mueller

Examples

randomGroupedHeatmap(n.row=10, n.col=3, ngrps.row=2, ngrps.col=3, cols=colpal.cont(n=9, name="viridis"))
randomGroupedHeatmap(n.row=100, n.col=18, ngrps.row=3, ngrps.col=3, cols=colpal.cont(n=9, name="cb.BrBG"))
pdftemp()
draw(randomGroupedHeatmap(n.row=100, n.col=6, ngrps.row=3, ngrps.col=3, cols=colpal.PhFr.a))
dev.off()

demuellae/muRtools documentation built on Nov. 6, 2024, 9:44 a.m.