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.
1 | matrixCenter(lx, MARGIN = 1, scale = F)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.