plotCounts {CATALYST} | R Documentation

## Plot cell counts

### Description

Barplot of the number of cells measured for each sample.

### Usage

    plotCounts(x, color_by = "condition", anno = TRUE)

### Arguments

`x` | a `SingleCellExperiment`.
`color_by` | character string specifying a `colData(x)` column to color by.
`anno` | logical. Whether to annotate cell numbers as text above bars.

### Value

a `ggplot` object.

### Author(s)

Helena Lucia Crowell

### References

Nowicka M, Krieg C, Weber LM et al. CyTOF workflow: Differential discovery in high-throughput high-dimensional cytometry datasets. F1000Research 2017, 6:748 (doi: 10.12688/f1000research.11622.1)

### Examples

    data(PBMC_fs, PBMC_panel, PBMC_md)
    sce <- prepData(PBMC_fs, PBMC_panel, PBMC_md)
    plotCounts(sce)

[Package CATALYST version 1.10.3 Index]