plotCumulativeBases: Plot bar chart of cumulative read count

Description Usage Arguments Value

View source: R/plottingAndStats.R

Description

Uses metadata DataFrame to plot the distribution of reads in ggplot. Can plot read quality in stacked bars, manipulate the width of bins.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plotCumulativeBases(
  df,
  bin.num,
  plotQual = TRUE,
  qual.bins = c(10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60),
  binWidth = 6000,
  barColor = "#8ec462",
  barColorRamp = c("#8ec462", "firebrick1"),
  colorMapVar = NA,
  dodgeAdjust = 10000
)

Arguments

df

DataFrame of read metadata

bin.num

Number of Bins

plotQual

TRUE or FALSE, default FALSE, plot quality distribution as fill

qual.bins

a vector of quality cutoffs for use with plotQual

binWidth

the width of each bar in b

barColor

the name or hex string of a color if not plotting quality

barColorRamp

a vector of rcolors to be used when mapping two datasets

colorMapVar

name of a column in df to map fill to

dodgeAdjust

a number to adjust the spacing of color mapped bars. Default is 10kb.

Value

a ggplot2 plot


mgaleyuw/NanoGraph documentation built on Dec. 21, 2021, 5:08 p.m.