Contains code for R package with R color palettes inspired by Carnegie Mellon University.
Code adopted from the lovely inauguration
R package by Cianna Bedford-Petersen, available here.
Install the carnegiecolors
R package using the following code:
#install.packages("devtools")
devtools::install_github("kimberlywebb/carnegiecolors", ref="main")
library(carnegiecolors)
Use the names
function to view the available color palettes.
names(carnegie_palettes)
#> [1] "classic" "secondary" "campus"
Call the palette using the render_cornell_colors
function
render_cornell_colors("classic")
View a subset of the secondary color scheme
render_cornell_colors("secondary", 5)
Use colors from carnegie_palettes
in your graphs
set.seed(1)
hist(rnorm(n = 100, mean = 0, sd = 1), col = carnegie_palettes[["campus"]][4])