plotAlevinHistogram: Histogram of selected summary statistic

Description Usage Arguments Value Author(s) Examples

View source: R/plotAlevinHistogram.R

Description

Histogram of selected summary statistic

Usage

1
2
3
4
5
6
7
plotAlevinHistogram(
  cbTable,
  plotVar = "dedupRate",
  axisLabel = plotVar,
  colName = "inFinalWhiteList",
  cbName = "final whitelist"
)

Arguments

cbTable

data.frame (such as the cbTable returned by readAlevinQC) containing the desired summary statistic in a column.

plotVar

Character scalar giving the name of a numeric column of cbTable to plot.

axisLabel

Character scalar giving the label of the selected statistic (will be displayed as the axis label in the plot).

colName

Character scalar giving the name of a logical column of cbTable to use for filling the bars in the histogram.

cbName

Character scalar giving the name of the set of barcodes defined by colName, used for labelling the plot legend.

Value

A ggplot object

Author(s)

Charlotte Soneson

Examples

1
2
3
4
5
6
alevin <- readAlevinQC(system.file("extdata/alevin_example_v0.14",
                                   package = "alevinQC"))
plotAlevinHistogram(alevin$cbTable, plotVar = "dedupRate",
                    axisLabel = "Deduplication rate",
                    colName = "inFinalWhiteList",
                    cbName = "final whitelist")

alevinQC documentation built on Feb. 4, 2021, 2:01 a.m.