Helper function to create DT::styleInterval for a given data, in which Positive numbers are mapped to shades of green, and Negative numbers are mapped to shades of red
1 | signedColorStyleInterval(data, num.breaks = 20)
|
data |
a vector of possible values |
num.breaks |
number of color breaks |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.