Skip to contents

Draws a bar plot of the number of barcodes with zero reads in each sample, as computed by barcode_lost. A sample that lost many more barcodes than the others usually has a low quality.

Usage

plot_barcode_lost(
  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_barcode_lost(object)