Skip to contents

Visualizes 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 a gene column; remaining columns are group names).

title

Character. Plot title. Default "% cells expressing each gene".

output_dir

Character or NULL. Directory to save a PDF. NULL returns the plot.

file_name

Character or NULL. Base name (no extension) for the saved PDF. Defaults to "PctHeatmap".

Value

A ggplot2 object (invisibly when saved).