plotCellCount: Plot cell count

View source: R/plot-miscellaneous.R

plotCellCountR Documentation

Plot cell count

Description

Visualizes the number and distribution of cells across a discrete feature of choice.

Usage

plotCellCount(object, across, color_by = across, phase = NULL)

Arguments

object

A valid cypro object.

across

Character value, character vector or NULL (see details for more). Specifies the grouping variable of interest.

Use getGroupingVariableNames() to obtain all variable names that group the cells of your experiment in a certain manner.

color_by

Character value. Denotes the discrete variable with which to color the columns of the plot. Defaults to input for argument across.

phase

Character or numeric. If character, the ordinal value referring to the phase of interest (e.g. 'first', 'second' etc.). referring to the phase of interest or 'all'. If numeric, the number referring to the phase.

If set to NULL takes the phase denoted as default with adjustDefault().

Ignored if the experiment design contains only one phase.

Value

A ggplot.


theMILOlab/cypro documentation built on April 5, 2022, 2:03 a.m.