Skip to contents

Read distribution per negative control

Usage

plot_negative_control_histogram(
  data,
  reaction_colours = default_reaction_colours,
  batch_name = NULL,
  remove_zeros = TRUE,
  ncol_layout = 3,
  negative_control_read_threshold = NULL
)

Arguments

data

Negative control amplicon coverage, from negative_control_amplicons().

reaction_colours

Colours for each reaction.

batch_name

Optional batch name for the title.

remove_zeros

If TRUE, targets with no reads are not plotted.

ncol_layout

Number of facet columns.

negative_control_read_threshold

If not NULL, a dashed vertical line is drawn at this number of reads, the threshold above which negative control targets are reported (see negative_control_targets_over_threshold()).

Value

A ggplot, or NULL if there is nothing to plot.