View source: R/defineDataBreaks.R
defineDataBreaks | R Documentation |
Defines breaks as an input for “pheatmap“ for a given colour palette (to be used as the “color“ input in “pheatmap“) and dataset using the minimum and mximum values within “x“ to define the range for the breaks.
defineDataBreaks(x, col_pal, mid_point = NULL)
x |
The dataset of interest. |
col_pal |
A colour palette (of at least 4 entries) |
mid_point |
The mid point on the values for the pheatmap (defaults to the mean of “min(x)“ and “max(x)“). Useful if there is a natural boundary (e.g. 0). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.