readLengthDistPlot: Read length distribution plot

View source: R/vis.R

readLengthDistPlotR Documentation

Read length distribution plot

Description

Plot read length distribution as a barplot. The readLenDF should be output from readLengthDist function.

Usage

readLengthDistPlot(readLenDF, color = "steelblue", type = c("count", "pct"))

Arguments

readLenDF

A data.frame of read length distribution containing three columns, readLen, count, and pct. This dataframe should be output from readLengthDist function. (Required).

color

A character variable indicating the color of the read length distribution bar plot. (Default: 'steelblue').

type

A character variable indicating if the actual read counts for each read length or the relative percentage should be plotted. Must be selected from c('count', 'pct'). (Default: 'pct').

Value

A ggplot object showing the read length distribution.


nzhang89/RiboSeeker documentation built on April 15, 2022, 10:18 a.m.