View source: R/summary_expression.R
heatmap_expression | R Documentation |
Create heatmap of gene expression
heatmap_expression(
object = NULL,
features = NULL,
coldata = NULL,
rowdata = NULL,
rowdata_label = "group",
order_rows = FALSE,
remove_duplicates = FALSE,
collapse_replicates = TRUE,
coldata_group_max = 100,
cells = colnames(object),
heatmap_colors = "RdBu",
heatmap_color_dir = -1,
annotation_colors = NULL,
scale = TRUE,
assay = NULL,
slot = "data",
limits = c(-2, 2),
title = "Differentially expressed genes",
show_rownames = FALSE,
show_colnames = FALSE,
gaps_row = NULL,
...
)
object |
Seurat object |
features |
Character of genes to plot |
coldata |
Annotation for columns |
rowdata |
Annotation for rows |
rowdata_label |
Name of the row annotation |
order_rows |
Whether to order rows by group |
remove_duplicates |
Whether to remove duplicated rows |
collapse_replicates |
Whether to average over groups of cells |
coldata_group_max |
Maxiumum number of categories for each column annotation |
cells |
Cells to plot |
heatmap_colors |
Name of color scale to use (default: "RdBu") |
heatmap_color_dir |
Direction of heatmap color scale |
annotation_colors |
List of color assignments for annotations |
scale |
Whether to scale expression data |
assay |
Which assay to take expression data from |
slot |
Which slot of the assay to use ("data", "counts") |
limits |
Limits of the color scale |
title |
Plot title |
show_rownames |
Whether to show rownames |
show_colnames |
Whether to show colnames |
gaps_row |
Numeric vector specifying row gaps |
... |
Other parameters passed to pheatmap |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.