DrawBarplotBothStrands: DrawBarplotBothStrands Function (GloModAn)

View source: R/GloModAn.R

DrawBarplotBothStrandsR Documentation

DrawBarplotBothStrands Function (GloModAn)

Description

Return a barplot describing some parameter values provided by strand for each contig.

Usage

DrawBarplotBothStrands(
  nParamByContigForward,
  nParamByContigReverse,
  cContigNames,
  cGraphName,
  lIsOrderedLargestToSmallest = TRUE
)

Arguments

nParamByContigForward

A numeric vector containing the parameter values of the forward strand to be plotted. Must have the same order and same length as cContigNames and nParamByContigReverse.

nParamByContigReverse

A numeric vector containing the parameter values of the reverse strand to be plotted. Must have the same order and same length as nParamByContigForward and cContigNames.

cContigNames

A character vector containing the names of the contigs. Must have the same order and same length as nParamByContigForward and nParamByContigReverse.

cGraphName

The graph name to be displayed on top of the plot.

lIsOrderedLargestToSmallest

If contigs are ordered from largest to smallest contig, add TRUE to display "(from largest to smallest)" below the plot. Defaults to FALSE.

Examples

DrawBarplotBothStrands(
  nParamByContigForward = c(100, 86, 75, 56),
  nParamByContigReverse = c(96, 88, 80, 83),
  cContigNames = c("chrI", "chrII", "chrIII", "chrIV"),
  cGraphName = "Mean Coverage per contig",
  lIsOrderedLargestToSmallest = TRUE
)

AlexisHardy/DNAModAnnot documentation built on Feb. 27, 2023, 12:03 a.m.