The goal of ideacolors is simple: to ensure that graphics generated by IDEA Research and Analytics in R with ggplot2 conform to IDEA’s Brand Guidelines (2024) by providing themes and scales. This package uses by default the palette defined in the 2024 Brand Guidelines document found on pages 19-21.
Similarly, ideacolors also provides a palette defined in the Camp RIO Branding Guidelines (2022) on page 7 for visualizations related to Camp RIO.
The point is to help us innovate on the content of our visualizations rather than the look and feel. Indeed, the latter is important in conveying analysis and insights in a familiar way, but it remains more sizzle than steak.
Installation
Since this is an internal package, you need to install the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("idea-analytics/ideacolors")Examples
Here we can use scale_idea_colors and theme_idea_light
library(ideacolors)
library(tidyverse)
#> ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
#> ✔ dplyr 1.1.4 ✔ readr 2.1.4
#> ✔ forcats 1.0.0 ✔ stringr 1.5.1
#> ✔ ggplot2 3.5.0 ✔ tibble 3.2.1
#> ✔ lubridate 1.9.3 ✔ tidyr 1.3.0
#> ✔ purrr 1.0.2
#> ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
#> ✖ 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
p <- ggplot(mtcars, aes(x=disp, y=mpg)) +
geom_point(aes(color=as_factor(cyl))) +
scale_color_idea(palette = "div") +
theme_idea_light()
p
And we can change it up with a qualitative color scale and theme_idea_min:
p +
scale_color_idea(palette = "qual") +
theme_idea_min()
#> Scale for colour is already present.
#> Adding another scale for colour, which will replace the existing scale.
Using Camp RIO branding guidelines is very similar - instead of scale_color_idea() or scale_fill_idea(), use scale_color_camp_rio() or scale_fill_camp_rio().
p +
scale_color_camp_rio() +
theme_idea_min()
#> Scale for colour is already present.
#> Adding another scale for colour, which will replace the existing scale.
Note that Camp RIO themes are not provided - please use theme_idea_min() or theme_idea_light() instead.
