scale_color_camp_rio: Camp RIO color scale palette for ggplot2

View source: R/scales_camp_rio.R

scale_color_camp_rioR Documentation

Camp RIO color scale palette for ggplot2

Description

Camp RIO color scale palette for ggplot2

Usage

scale_color_camp_rio(
  palette = "div",
  discrete = TRUE,
  alpha = 1,
  reverse = FALSE,
  year = 2022,
  ...
)

scale_colour_camp_rio(
  palette = "div",
  discrete = TRUE,
  alpha = 1,
  reverse = FALSE,
  year = 2022,
  ...
)

Arguments

palette

Choose from 'camp_rio_palettes_2022' list

discrete

whether to use a discrete color palette

alpha

transparency

reverse

logical, Reverse the order of the colours?

year

Defaults to the most recent branding guidelines (year = 2022)

...

additional arguments to passed to 'scale_color_gradientn'

Examples

library(ggplot2)

ggplot(mtcars, aes(mpg, wt)) +
  geom_point(aes(colour = factor(cyl))) +
  scale_colour_camp_rio(palette="qual")

ggplot(mtcars, aes(mpg, wt)) +
  geom_point(aes(colour = hp)) +
  scale_colour_camp_rio(palette="qual", discrete = FALSE)

ggplot(data = mpg) +
  geom_point(mapping = aes(x = displ, y = hwy, color = class)) +
  scale_colour_camp_rio(palette="bluegray")

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