| scale_fill_idea | R Documentation |
IDEA fill palette for ggplot2
scale_fill_idea(
palette = "div",
discrete = TRUE,
alpha = 1,
reverse = TRUE,
year = 2024,
...
)
palette |
Choose from 'idea_palettes' list |
discrete |
whether to use a discrete colour palette |
alpha |
The alpha transparency, a number in [0,1], see argument alpha in
|
reverse |
If 'TRUE“, the direction of the color ramp is reversed. |
year |
Defaults to the most recent branding guidelines (year = 2024), but year = 2019 also available |
... |
additional arguments to pass to scale_color_gradientn |
library(ggplot2)
ggplot(diamonds) + geom_bar(aes(x = cut, fill = clarity)) +
scale_fill_idea()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.