Skip to contents

Plot mitochondrial vs. coding counts

Usage

plotMitoVsCoding(object, ...)

# S4 method for SingleCellExperiment
plotMitoVsCoding(
  object,
  interestingGroups = NULL,
  trendline = FALSE,
  trans = "log2",
  labels = list(title = "Mito vs. coding", subtitle = NULL, x = "coding", y = "mito")
)

Arguments

object

Object.

interestingGroups

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

trendline

logical(1). Include trendline on plot.

trans

character(1). Name of the axis scale transformation to apply.

For more information:

help(topic = "scale_x_continuous", package = "ggplot2")

labels

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

...

Additional arguments.

Value

ggplot.

Note

Updated 2022-03-07.

Author

Michael Steinbaugh, Rory Kirchner

Examples

data(SingleCellExperiment_splatter, package = "AcidTest")

## SingleCellExperiment ====
object <- SingleCellExperiment_splatter
try({
    plotMitoVsCoding(object)
})
#> Error in stop(simpleError(message = msg, call = if (p <- sys.parent(1L)) { : 
#>   `nMito` in `colData()` contains NA values.