
Big Ten Institution Primary & Sceondary Color Palette
Source:R/BigTen_colors.R
get_bigten_colors.Rd
Get Big Ten colors for specific institutions
Examples
# Get primary colors for specific institutions
get_bigten_colors(c("Michigan", "Ohio State", "MSU"))
#> Michigan Ohio State MSU
#> "#ffcb05" "#bb0000" "#18453b"
# Get secondary colors
get_bigten_colors(c("Michigan", "Northwestern"), type = "secondary")
#> Michigan Northwestern
#> "#00274c" "#e4e0ee"
# Use in ggplot with scale_fill_manual
library(ggplot2)
my_colors <- get_bigten_colors(c("Michigan", "Ohio State", "MSU"))
BigTenData <- data.frame(
institution = c("Michigan", "Ohio State", "MSU"),
value = c(10, 15, 20)
)
ggplot(data=BigTenData) +
geom_bar(aes(x = institution, y = value, fill = institution),
stat="identity") +
scale_fill_manual(values = my_colors)