plotCellTotals: Plots Total Count Per Cell Type

Description Usage Arguments Value Examples

Description

Generate a barplot

Usage

1
plotCellTotals(eset, cellType, sampleID)

Arguments

eset

a matrix or ExpressionSet object.

cellType

vector or name of phenotypic variable that contains the mapping of each column (i.e. each cell) to a cell type.

sampleID

vector or name of phenotypic variable that contains the mapping of each column (i.e. each cell) to a biological sample.

Value

a ggplot object with ggplot2::geom_bar.

Examples

1
2
3
4
5
6
# generate random data
x <- rscData()
# check phenotypic variables
varLabels(x)
# plot counts
plotCellTotals(x, 'cellType', 'sampleID')

shenorrLab/bseqsc documentation built on May 29, 2019, 9:23 p.m.