plot_mapped_reads: Plot mapped reads

View source: R/plot_mapped_reads.R

plot_mapped_readsR Documentation

Plot mapped reads

Description

This function plots the number of reads mapped for each sample. It internally call the count_mapped_reads function, to compute the number of mapped reads.

Usage

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

Arguments

screenR_Object

The ScreenR object obtained using the create_screenr_object

palette

A vector of color that as to be used to fill the barplot.

alpha

A value for the opacity of the plot. Allowed values are in the range 0 to 1

legende_position

Where to positioning the legend of the plot ("none", "left", "right", "bottom", "top")

Value

return a ggplot object

Examples

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

plot_mapped_reads(object)

EmanuelSoda/ScreenR documentation built on Sept. 29, 2023, 12:33 a.m.