.ggDensity {singleCellTK} | R Documentation

## Density plot plotting tool.

### Description

Visualizes values stored in the specified slot of a SingleCellExperiment object via a density plot.

### Usage

    .ggDensity(
      value,
      groupBy = NULL,
      xlab = NULL,
      ylab = NULL,
      baseSize = 12,
      axisSize = NULL,
      axisLabelSize = NULL,
      defaultTheme = TRUE,
      title = NULL,
      titleSize = NULL,
      combinePlot = "none",
      cutoff = NULL
    )

### Arguments

`value` | Numeric value that will be plotted via density plot.
`groupBy` | Groupings for each numeric value. A user may input a vector equal length to the number of the samples in the SingleCellExperiment object, or can be retrieved from the colData slot. Default NULL.
`xlab` | Character vector. Label for x-axis. Default NULL.
`ylab` | Character vector. Label for y-axis. Default NULL.
`baseSize` | The base font size for all text. Default 12. Can be overwritten by titleSize, axisSize, and axisLabelSize.
`axisSize` | Size of x/y-axis ticks. Default NULL.
`axisLabelSize` | Size of x/y-axis labels. Default NULL.
`defaultTheme` | Removes grid in plot and sets axis title size to 10 when TRUE. Default TRUE.
`title` | Title of plot. Default NULL.
`titleSize` | Size of title of plot. Default 15.
`combinePlot` | Must be either "all", "sample", or "none". "all" will combine all plots into a single .ggplot object, while "sample" will output a list of plots separated by sample. Default "none".
`cutoff` | Numeric value. The plot will be annotated with a vertical line if set. Default NULL.

### Value

density plot, in .ggplot.

[Package singleCellTK version 2.2.0 Index]