matrixCenter: Centering a numeric matrix

Description Usage Arguments

View source: R/matrixCenter.R

Description

Plotting heatmaps of gene expression data in numeric matrices often is the most clear when each gene is centered on 0. Since most expression data is log2 transformed, scaling of data is not desirable.

Usage

1
matrixCenter(lx, MARGIN = 1, scale = F)

Arguments

lx

a numeric matrix

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.

scale

either a logical value or a numeric-alike vector of length equal to the number of columns of x.


wayneliuq/wmisc documentation built on Dec. 23, 2021, 5:08 p.m.