
Heatmap of per-group gene expression percentages
PlotPctHeatmap.RdVisualizes the pct_table returned by FilterGenesByPct() as a tile
heatmap — genes on the y-axis, groups on the x-axis, color encoding the
percent of cells expressing each gene.
Usage
PlotPctHeatmap(
pct_table,
title = "% cells expressing each gene",
output_dir = NULL,
file_name = NULL
)Arguments
- pct_table
Data frame as returned by
FilterGenesByPct()(gene names as rownames or in agenecolumn; remaining columns are group names).- title
Character. Plot title. Default
"% cells expressing each gene".- output_dir
Character or
NULL. Directory to save a PDF.NULLreturns the plot.- file_name
Character or
NULL. Base name (no extension) for the saved PDF. Defaults to"PctHeatmap".