A collection of color palettes based on the [Camp RIO Brand Guidelines (2022)](https://brandfolder.com/ideapublicschools) (you'll need to behind the firewall to see that guide).
Details
The list of available palettes is: * qual * div * blueorange * greenorange * bluegray * greengray * orangegray
Examples
# Make an x-y plot using the div palette
library(tidyverse)
#> ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
#> ✔ dplyr 1.1.4 ✔ readr 2.1.5
#> ✔ forcats 1.0.0 ✔ stringr 1.5.1
#> ✔ ggplot2 3.5.0 ✔ tibble 3.2.1
#> ✔ lubridate 1.9.3 ✔ tidyr 1.3.1
#> ✔ purrr 1.0.2
#> ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
#> ✖ readr::col_factor() masks scales::col_factor()
#> ✖ purrr::discard() masks scales::discard()
#> ✖ dplyr::filter() masks stats::filter()
#> ✖ dplyr::lag() masks stats::lag()
#> ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
df <- data.frame(x = rnorm(100, 0, 20),
y = rnorm(100, 0, 20),
cl = sample(letters[1:8], 100, replace=TRUE))
ggplot(df, aes(x, y, colour=cl, shape=cl)) +
geom_point(size=4) +
scale_colour_camp_rio() +
theme_bw() +
theme(aspect.ratio=1)
#> Warning: The shape palette can deal with a maximum of 6 discrete values because more
#> than 6 becomes difficult to discriminate
#> ℹ you have requested 8 values. Consider specifying shapes manually if you need
#> that many have them.
#> Warning: Removed 22 rows containing missing values or values outside the scale range
#> (`geom_point()`).
# Make a histogram using the qual palette
ggplot(df, aes(x, fill=cl)) + geom_histogram() +
scale_fill_camp_rio(palette="qual")
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
