cxheatmap: Heatmap plotting with ComplexHeatmap

View source: R/plotting_functions.R

cxheatmapR Documentation

Heatmap plotting with ComplexHeatmap

Description

Heatmap plotting with ComplexHeatmap

Usage

cxheatmap(
  data,
  rowdf = NULL,
  coldf = NULL,
  scale = FALSE,
  cluster_rows = NULL,
  cluster_cols = NULL,
  rowdf_side = "left",
  coldf_side = "top",
  rowdf_legend = TRUE,
  coldf_legend = TRUE,
  legend_border = "black",
  anno_border = "black",
  fontsize = 12,
  rowcex = NULL,
  colcex = 1,
  rownames_width = 0.3,
  colnames_width = 0.3,
  heatpal = NULL,
  border = NULL,
  title = NULL,
  colors = NULL,
  inf = F,
  na = 0,
  mat = NULL,
  markoob = FALSE,
  markshape = 4,
  marksize = NULL,
  na_col = "grey",
  maxchar = 35,
  ...
)

Arguments

data

matrix or dataframe

rowdf

dataframe with row annotations

coldf

dataframe with column annotations

scale

z-scale 'rows' or 'cols'

cluster_rows

cluster rows

cluster_cols

cluster columns

rowdf_side

left/right

coldf_side

top/bottom

rowdf_legend

show rowdf legend

coldf_legend

show coldf legend

legend_border

border of legends

fontsize

base fontsize

rowcex

sizefactor for row annotations

colcex

sizefactor for col annotations

heatpal

color palette ('circlize::colorRamp2')

border

cell border

title

title of colorscale legend

colors

list of colors for annotations

inf

handling of Inf values for clustering

na

handling of NA values for clustering

mat

logical matrix indicating where to draw marks

markoob

mark out-of-bounds values

markshape

shape of cell marks

marksize

size of cell marks

na_col

color of NA values

maxchar

max. length of colnames/rownames

...

See Also

https://jokergoo.github.io/ComplexHeatmap-reference/book/

Examples

cxheatmap(rmat(50, 30), coldf = data.frame(row.names = colnames(rmat(50, 30)), group = sample(LETTERS[1:5], size = 30, replace = TRUE)))
cxheatmap(rmat(50, 30), border = c("black", 2))


AlexanderKirchmair/datamisc documentation built on June 13, 2025, 5:26 a.m.