Compare feature expression correlation across two data sets.

plotCountsCorrelation(x, y, ...)

# S4 method for matrix,matrix
plotCountsCorrelation(x, y, i = NULL,
  j = NULL, xTitle = deparse(substitute(x)),
  yTitle = deparse(substitute(y)), labs = list(colour = NULL, x = NULL,
  y = NULL, title = NULL, subtitle = NULL))

Arguments

x

Object.

y

Object.

i

indices specifying elements to extract or replace. Indices are numeric or character vectors or empty (missing) or NULL. Numeric values are coerced to integer as by as.integer (and hence truncated towards zero). Character vectors will be matched to the names of the object (or for matrices/arrays, the dimnames): see ‘Character indices’ below for further details.

For [-indexing only: i, j, can be logical vectors, indicating elements/slices to select. Such vectors are recycled if necessary to match the corresponding extent. i, j, can also be negative integers, indicating elements/slices to leave out of the selection.

When indexing arrays by [ a single argument i can be a matrix with as many columns as there are dimensions of x; the result is then a vector with elements corresponding to the sets of indices in each row of i.

An index value of NULL is treated as if it were integer(0).

j

indices specifying elements to extract or replace. Indices are numeric or character vectors or empty (missing) or NULL. Numeric values are coerced to integer as by as.integer (and hence truncated towards zero). Character vectors will be matched to the names of the object (or for matrices/arrays, the dimnames): see ‘Character indices’ below for further details.

For [-indexing only: i, j, can be logical vectors, indicating elements/slices to select. Such vectors are recycled if necessary to match the corresponding extent. i, j, can also be negative integers, indicating elements/slices to leave out of the selection.

When indexing arrays by [ a single argument i can be a matrix with as many columns as there are dimensions of x; the result is then a vector with elements corresponding to the sets of indices in each row of i.

An index value of NULL is treated as if it were integer(0).

xTitle

character(1). Name of object defined in x.

yTitle

character(1). Name of object defined in y.

labs

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

...

Additional arguments.

Value

Graphical output.

Note

Updated 2019-07-29.

Examples

data(RangedSummarizedExperiment, package = "acidtest") rse <- RangedSummarizedExperiment ## matrix ==== x <- SummarizedExperiment::assay(rse) x <- x[seq_len(4L), seq_len(2L)] y <- x * 2L plotCountsCorrelation(x, y)
#> Error in UseMethod("ungroup"): no applicable method for 'ungroup' applied to an object of class "c('DataFrame', 'DataTable', 'SimpleList', 'DataTable_OR_NULL', 'List', 'Vector', 'list_OR_List', 'Annotated')"