View source: R/plotting_functions.R
cxheatmap | R Documentation |
Heatmap plotting with ComplexHeatmap
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,
...
)
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 |
... |
https://jokergoo.github.io/ComplexHeatmap-reference/book/
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.