Skip to contents

IDEA fill palette for ggplot2

Usage

scale_fill_idea(
  palette = "div",
  discrete = TRUE,
  alpha = 1,
  reverse = TRUE,
  year = 2024,
  ...
)

Arguments

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 hsv.

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

Examples

library(ggplot2)
ggplot(diamonds) + geom_bar(aes(x = cut, fill = clarity)) +
  scale_fill_idea()