Skip to contents

IDEA palettes with ramped colors

Usage

idea_palette_ramp(palette = "div", alpha = 1, reverse = FALSE, year = 2024)

Arguments

palette

Choose from `idea_palettes` list

alpha

transparency from 0 (completely transparent) to 1 (completely opaque)

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

Value

a function that takes the number of colors needed as an argument

Examples

library(scales)

# Defaults to the most recent branding guidelines (2024)
show_col(idea_palette_ramp()(10))


# Use the 2019 branding guidelines instead
show_col(idea_palette_ramp(year = 2019)(10))


filled.contour(volcano,color.palette = idea_palette_ramp(), asp=1)