defineBreaks | R Documentation |
Defines breaks as an input for “pheatmap“ for a given colour palette (to be used as the “color“ input in “pheatmap“).
defineBreaks(col_pal, lb = -1, ub = 1, mid_point = 0.5 * (lb + ub))
col_pal |
A colour palette (of at least 4 entries) |
lb |
The lower bound for the breaks (i.e. the minimum value that will be shown in the heatmap). |
ub |
The upper bound on displayed values in the heatmap. |
mid_point |
The mid point on the values for the pheatmap (defaults to the mean of “lb“ and “ub“). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.