Skip to contents

Camp RIO palettes with ramped colors

Usage

camp_rio_palette_ramp(palette = "div", alpha = 1, reverse = FALSE, year = 2022)

Arguments

palette

Choose from `camp_rio_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 = 2022)

Value

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

Examples

library(scales)
show_col(camp_rio_palette_ramp()(10))


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