Description Usage Arguments Details Value
Used to change the "luminance" of colors for 'get_ercot_palette_scaled()', (athough it really is a general function that can be used for other purposes as well).
Provides greater customability than 'get_ercot_palette()'.
Used for 'ercot_pal()'.
1 2 3 4 5 6 | scale_color(r, g, b, max = 255, scale = 1)
get_ercot_palette_scaled(num_colors = 12, max = 255, scale = 1,
with_contrast = TRUE)
get_ercot_palette(num_colors = 12, with_contrast = TRUE)
|
r |
red number, Max: 255 |
g |
green number Max: 255 |
b |
blue number Max: 255 |
max |
max number, Default: 255 |
scale |
number between 0 and 1, Default: 1 |
num_colors |
number between 0 and 12 Default: 12 |
with_contrast |
boolean, Default: TRUE (TRUE provides maroon as secondary color, FALSE provides grey as secondary color) |
See 'get_ercot_palette()' and 'get_ercot_palette_scaled()'.
See 'get_ercot_palette()'.
A character vector with colors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.