su_theme_pal | R Documentation |
This function returns a palette generated by colorRampPalette from one of the Strategy Unit palettes
su_theme_pal(
palette = c("main", "oranges", "charcoals", "slates", "reds", "blues"),
reverse = FALSE,
...
)
palette |
The name of palette to use |
reverse |
Optional: boolean value to reverse the palette |
... |
arguments to pass to colorRamp |
A colorRamp function
su_theme_pal()
# or, specify a paltte
su_theme_pal("oranges")
# a reverse palette
su_theme_pal("slates", TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.