plot_unique_read_pct: Unique read percentage per sample scatterplot

View source: R/rnaseq_workflow_qc.R

plot_unique_read_pctR Documentation

Unique read percentage per sample scatterplot

Description

Create a unique read percentage by sample scatterplot.

Usage

plot_unique_read_pct(
  data,
  group = NULL,
  point_size = 4,
  fill = NULL,
  alpha = 0.75,
  sort = T,
  ids = NULL,
  invert = F,
  return_data = F
)

Arguments

data

A data frame with sequencing depth data in the same format as fastqc returned by load_paired_end_qc_data.

group

A single column data frame denoting categorical variable values to use to partition the data points into separate distributions/boxplots. Row names should match rownames in data.

point_size

A numeric. The size for data points.

fill

A string. The fill color for data points.

alpha

A numeric. The alpha level for data points.

sort

A logical. Should the x-axis be ordered by sequencing depth?

ids

A vector of rownames for subsetting data for plotting.

invert

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

return_data

A logical. Should plot data be returned instead of a ggplot object?

Value

A ggplot object.

A ggplot object unless return_data is TRUE, then a data frame with the unique read percentage and grouping variable.

See Also

load_paired_end_qc_data


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