Visualize row or column sums using empirical cumulative distribution function (ECDF) plot.

plotSums(object, ...)

# S4 method for matrix
plotSums(object, MARGIN = 1L)

# S4 method for Matrix
plotSums(object, MARGIN = 1L)

# S4 method for SummarizedExperiment
plotSums(object, assay = 1L,
  MARGIN = 1L)

Arguments

object

Object.

MARGIN

a vector giving the subscripts which the function will be applied over. E.g., for a matrix 1 indicates rows, 2 indicates columns, c(1, 2) indicates rows and columns. Where X has named dimnames, it can be a character vector selecting dimension names.

assay

vector(1). Assay name or index position.

...

Additional arguments.

Value

ggplot.

Note

Updated 2019-08-12.

Examples

data( RangedSummarizedExperiment, SingleCellExperiment, package = "acidtest" ) ## matrix ==== object <- counts(RangedSummarizedExperiment) plotSums(object, MARGIN = 1L)
## Matrix ==== object <- counts(SingleCellExperiment) plotSums(object, MARGIN = 2L)
## SummarizedExperiment ==== object <- SingleCellExperiment plotSums(object)
## SingleCellExperiment object <- RangedSummarizedExperiment plotSums(object)