Skip to contents

Draws a bar plot of the total number of reads mapped to the barcodes in each sample, computed with mapped_reads. Samples with far fewer reads than the others may have a lower quality.

Usage

plot_mapped_reads(
  screenR_Object,
  palette = NULL,
  alpha = 1,
  legende_position = "none"
)

Arguments

screenR_Object

The ScreenR object obtained using create_screenr_object.

palette

An optional vector of colors for the samples (named by sample, or one for each sample in order), which replaces the palette of the object. By default the Sample palette of the object is used when it is set (see get_palettes), otherwise the default colors of ggplot2.

alpha

The opacity of the bars, between 0 and 1. Default 1.

legende_position

The position of the legend: "none" (default), "top", "bottom", "right" or "left".

Value

A ggplot object.

Examples

object <- get0("object", envir = asNamespace("ScreenR"))

plot_mapped_reads(object)