Skip to contents

This function is a wrapper around DotPlot from Seurat package. On the dotplot, x-axis corresponds to cell type and y-axis corresponds to markers.

Usage

plot_dotplot(
  sobj,
  markers,
  assay = "SCT",
  column_name = "cell_type",
  nb_hline = NULL
)

Arguments

sobj

A Seurat object (no default)

markers

CHARACTER : a vector containing the names of genes of interest to plot (no default)

assay

CHARACTER : the assay in which gene expression are stored (default to "SCT")

column_name

CHARACTER : the column name corresponding to the cells grouping, for example the cell type (default to 'column_name')

nb_hline

INTEGER : number of lines to separate markers, as horizontal lines (default to NULL, corresponding to no line)

Value

Return a ggplot object