Description Usage Arguments Examples
Gauge colour, similar to the scale_colour_*
family of functions from the ggplot2
package.
1 2 3 4 | gauge_color(g2, colors = NULL, callback = NULL)
gauge_color_viridis(g2, option = c("viridis", "magma", "plasma",
"inferno", "cividis"), reverse = FALSE, callback = NULL)
|
g2 |
An object of class |
colors |
A vector of colors. |
callback |
A JavaScript callback function (see |
option |
Palette name. |
reverse |
Whether to reverse the palette. |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.