Expression Heatmap with Ancestry and Group Split
Source:R/plot_expression_heatmap.R
plot_expression_heatmap.Rd
Generates a z-scored expression heatmap with samples split by combined ancestry and group, and annotations for ancestry and group using ComplexHeatmap.
Usage
plot_expression_heatmap(
X,
Y,
MX,
MY,
a_col,
g_col,
features = NULL,
title = NULL,
x_label = NULL,
y_label = NULL,
file = NULL,
width = 8,
height = 8
)
Arguments
- X
Expression matrix for the first ancestry.
- Y
Expression matrix for the second ancestry.
- MX
Metadata for X.
- MY
Metadata for Y.
- a_col
Name of the column in metadata that defines ancestry.
- g_col
Name of the column in metadata that defines groups.
- features
Optional vector of feature names to plot. Defaults to the first 9 features.
- title
Optional heatmap title.
- x_label
Optional label for the color legend.
- y_label
Optional label for the row axis.
- file
Optional file path to save the plot (PDF, PNG, JPEG, or TIFF).
- width
Plot width in inches (default = 8).
- height
Plot height in inches (default = 8).