Quick shortcuts for RColorBrewer color ramp palettes that map [0,1]
to colors
1 2 3 4 5 | col_ramp_brewer(palette = rownames(RColorBrewer::brewer.pal.info), alpha = 0.4)
col_rmp_red(x)
col_rmp_blue(x)
|
palette |
An RColorBrewer palette. |
alpha |
Transparency. Default 0.4. |
x |
Argument to the returned object, which is a function that maps (0,1) -> hex color code. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.