Plot percentage of zeros vs. library depth

plotZerosVsDepth(object, ...)

# S4 method for SummarizedExperiment
plotZerosVsDepth(object, assay = 1L,
  interestingGroups = NULL, color = getOption(x =
  "acid.color.discrete", default = acidplots::scale_color_synesthesia_d()),
  labels = list(title = "Zeros vs. depth", subtitle = NULL, x =
  "library size (depth)", y = "dropout rate"))

Arguments

object

Object.

assay

vector(1). Assay name or index position.

interestingGroups

character. Groups of interest to use for visualization. Corresponds to factors describing the columns of the object.

color

ScaleDiscrete. Desired ggplot2 color scale. Must supply discrete values. When set NULL, the default ggplot2 color palette will be used. If manual color definitions are desired, we recommend using ggplot2::scale_color_manual().

To set the discrete color palette globally, use:

options(acid.color.discrete = ggplot2::scale_color_viridis_d())
labels

list. ggplot2 labels. See ggplot2::labs() for details.

...

Additional arguments.

Value

ggplot.

Note

Updated 2019-09-16.

Examples

data( RangedSummarizedExperiment, SingleCellExperiment, package = "acidtest" ) ## SummarizedExperiment ==== object <- RangedSummarizedExperiment plotZerosVsDepth(object)
## SingleCellExperiment ==== object <- SingleCellExperiment plotZerosVsDepth(object)