Skip to content

kimberlywebb/carnegiecolors

Repository files navigation

carnegiecolors

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.

R package installation

Install the carnegiecolors R package using the following code:

#install.packages("devtools")
devtools::install_github("kimberlywebb/carnegiecolors", ref="main")
library(carnegiecolors)

Using the carnegiecolors package

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])

About

Carnegie Mellon University colors palettes for R

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages