qc_scatter_plot: Generate a QC Scatter Plot for a pair of metrics

Description Usage Arguments Value

View source: R/qc_plots.R

Description

Generate a QC Scatter Plot for a pair of metrics

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
qc_scatter_plot(
  meta,
  column_x = "n_reads",
  name_x = "N Reads per Cell",
  column_y = "n_umis",
  name_y = "N UMIs per Cell",
  log_x = TRUE,
  frac_x = FALSE,
  log_y = TRUE,
  frac_y = FALSE,
  show_targets = TRUE,
  color = "dodgerblue"
)

Arguments

meta

A data.frame containing metadata

column_x

A character object specifying the metadata to display on the x-axis

name_x

A character object specifying a name to display on the x-axis

column_y

A character object specifying the metadata to display on the y-axis

name_y

A character object specifying a name to display on the y-axis

log_x

A logical indicating whether or not to log10-scale the x-axis. Default is TRUE.

frac_x

A logical indicating whether or not to scale the x-axis between 0 and 1. Default is FALSE

log_y

A logical indicating whether or not to log10-scale the y-axis. Default is TRUE.

frac_y

A logical indicating whether or not to scale the y-axis between 0 and 1. Default is FALSE

show_targets

A logical indicating whether or not to plot lines displaying ratios of values. Default is TRUE.

color

A character object specifying the color to use for for the points. Default is "dodgerblue".

Value

a ggplot2 plot object


AllenInstitute/BarMixer documentation built on Dec. 17, 2021, 8:42 a.m.