The goal of schoolcolors is to provide palettes for all possible NCAA schools. It is built very heavily upon the structure laid out in the wesanderson package.
This is still a Work In Progress. You can’t currently install from CRAN, and the dev version has only a structure. There are many NCAA schools and we would love any help that you can for populating the colors for schools.
The method for populating a school is as follows:
Initial code
r
college_of_william_and_mary = list(c())
Populated Colors
r
college_of_william_and_mary = list(c("#115740", "#B9975B"),
c("#F0B323", "#D0D3D4", "#00B388", "#CAB64B",
"#84344E", "#64CCC9", "#E56A54", "#789D4A",
"#789F90", "#5B6770", "#183028", "#00313C"))
You can install the development version from GitHub by doing the following:
# install.packages("remotes")
remotes::install_github("dermcnor/schoolcolors")
You can install the released version of schoolcolors from CRAN with:
install.packages("schoolcolors")
This is a basic example which shows you how to use a palette for a school.
library(schoolcolors)
## basic example code
my_pal <- school_palette("college_of_william_and_mary")
as.character(my_pal)
#> [1] "#115740" "#B9975B" "#F0B323" "#D0D3D4" "#00B388" "#CAB64B" "#84344E"
#> [8] "#64CCC9" "#E56A54" "#789D4A" "#789F90" "#5B6770" "#183028" "#00313C"
my_pal
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.