Skip to contents

Takes a single cell object, a grouping variable and a metadata variable. Plots distribution of factor per level of group with total number of cells above threshold

Usage

plotMetrics(
  sc.obj = NULL,
  group = NULL,
  trans = NULL,
  factor = NULL,
  threshold = 100,
  plot = TRUE
)

Arguments

sc.obj

single cell object in Seurat or SingleCellExperiment format containing group metadata

group

a column of metadata in sc.obj containing grouping information

trans

From ggplot2. For continuous scales, the name of a transformation object or the object itself.

factor

a metadata field to plot per level of group

threshold

threshold number of cells per level of group to plot

plot

Logical. Plot results or return data.

Value

Returns a plot of cell number by barcode test results or underlying plot data

Details

plotMetrics

Plots metric distribution for selected groups in a single cell dataset