$for(css)$ $endfor$

Generate a barplot

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

# generate random data x <- rscData() # check phenotypic variables varLabels(x)
#> [1] "cellType" "sampleID" "group"
# plot counts plotCellTotals(x, 'cellType', 'sampleID')