Modify default colors and breaks used in the heatplot. The list of the colors and the list of breaks values must be equal. The default color ramp is blue-green-yellow-orange-red with breaks at 0 The break values can either be percentages (make sure the break values start with zero and end with 1) or the actual values of the variable. The actual values will be remapped internally to be between zero and one.
1 2 | change_gradient_breaks(new_colors = c("blue", "green", "yellow", "orange",
"red"), mapped_break_values = c(0, 0.25, 0.5, 0.75, 1))
|
new_colors |
vector of colors to apply to the heatplot fill |
mapped_break_values |
vector of the break values to use for the specific colors (length of vector must match new_colors) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.