plotQCbar: plotQCbar

Description Usage Arguments Details Value Examples

View source: R/plotQCbar.R

Description

Quality control (QC) plots for spatial transcriptomics datasets.

Usage

1
plotQCbar(spe, metric_x = "cell_count", highlight_zeros = TRUE)

Arguments

spe

Input object (SpatialExperiment).

metric_x

Name of column in colData containing QC metric to plot on x-axis (e.g. "cell_count" for number of cells per spot). Default = "cell_count".

highlight_zeros

Whether to highlight bar for x = 0 (e.g. zero cells per spot, which is a special value).

Details

Functions to generate quality control (QC) plots for spatial transcriptomics datasets.

This function generates a barplot for one quality control (QC) metric, e.g. number of cells per spot. For number of cells per spot, the barplot highlights spots with zero cells, which are special values.

Value

Returns a ggplot object. Additional plot elements can be added as ggplot elements (e.g. title, formatting).

Examples

1
# to do

lmweber/spatzli documentation built on Sept. 16, 2020, 5:55 a.m.