plot_gc_content: GC content distribution line plot

View source: R/rnaseq_workflow_qc.R

plot_gc_contentR Documentation

GC content distribution line plot

Description

Create a line plot with read GC content distributions.

Usage

plot_gc_content(
  data,
  labels = NULL,
  line_colors = rep("red4", length(data)),
  alpha = 0.25,
  line_width = 1.5,
  ids = NULL,
  invert = F
)

Arguments

data

A list of data frames with data in the same format as gc_content returned by load_paired_end_qc_data. Each data frame is intended to represent a different category of data points (e.g., R1 vs. R2 reads in paired-end data).

labels

A vector of strings for legend labels corresponding to the data frames in data.

line_colors

A vector of strings. Line colors corresponding to the data frames in data.

alpha

A numeric. The alpha level for lines.

line_width

A numeric value for the line width.

ids

A vector of rownames for subsetting data for plotting.

invert

A logical. Should ids be used for excluding rows from plotting instead?

Value

A ggplot object.

See Also

load_paired_end_qc_data


bryancquach/omixjutsu documentation built on Jan. 29, 2023, 3:47 p.m.