su_theme_gradient_colour_scales | R Documentation |
Generates a two colour gradient (low-high)
scale_colour_su(
palette = c("main", "oranges", "charcoals", "slates", "reds", "blues"),
discrete = TRUE,
reverse = FALSE,
...
)
scale_color_su(
palette = c("main", "oranges", "charcoals", "slates", "reds", "blues"),
discrete = TRUE,
reverse = FALSE,
...
)
scale_fill_su(
palette = c("main", "oranges", "charcoals", "slates", "reds", "blues"),
discrete = TRUE,
reverse = FALSE,
...
)
palette |
The name of palette to use |
discrete |
Optional: boolean to indicate that this scale is a discrete scale. Defaults to TRUE |
reverse |
Optional: boolean to reverse the direction of the scale. Defaults to FALSE |
... |
additional arguments passed to the ggplot functions |
a scale object to be used with a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.