scale_fill_idea: IDEA fill palette for ggplot2

View source: R/scales.R

scale_fill_ideaR Documentation

IDEA fill palette for ggplot2

Description

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()


idea-analytics/ideacolors documentation built on April 6, 2024, 4:34 a.m.