redim_matrix | R Documentation |
This function summarizes a matrix into the desired numbe rof rows and columns.
redim_matrix(
mat,
target_height = 100,
target_width = 100,
summary_func = function(x) mean(x, na.rm = TRUE),
output_type = 0,
n_core = 1
)
mat |
A list of counts across peak summits generated by SummitHeatmap. |
target_height |
The desired number of rows of the output matrix. |
target_width |
The desired number of columns of the output matrix. |
summary_func |
The function to use for summarising the matrix.Default=mean. |
output_type |
The type of output matrix. |
n_core |
Numebr of cores to sue for calculation. |
It was taken from this reference: https://gdevailly.netlify.app/post/plotting-big-matrices-in-r/
A matrix of the size target_height by target_width that summarizes the original matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.