-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
82 lines (60 loc) · 2.77 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
fig.height = 1
)
```
# schoolcolors <img src="man/figures/logo.png" align="right" width="120" />
<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/schoolcolors)](https://CRAN.R-project.org/package=schoolcolors)
[![pkgdown build status](https://github.com/dermcnor/schoolcolors/workflows/pkgdown/badge.svg)](https://github.com/dermcnor/schoolcolors/actions)
<!-- badges: end -->
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](https://github.com/karthik/wesanderson) package.
## WIP
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:
1. Find School Colors:
+ Search for a school name and color palette. This generally leads to a brand site or pdf for that school.
+ Only if there is no branding or web usage site, pull colors from [TruColor](http://www.trucolor.net/college-colors-nicknames/college-colors-nicknames-full-index/)
+ The current Institutional Colors should be used.
2. Populate Colors:
+ Find the line with the school_name and populate the vector with the Primary Colors.
+ If there are any additional colors, put them on a new vector in the list and order them according to secondary, tertiary, accent, supporting, etc.
### Example: College of William and Mary
- 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"))
```
## Installation
You can install the development version from [GitHub](https://github.com/) by doing the following:
``` r
# install.packages("remotes")
remotes::install_github("dermcnor/schoolcolors")
```
You can install the released version of schoolcolors from [CRAN](https://CRAN.R-project.org) with:
``` r
install.packages("schoolcolors")
```
## Example
This is a basic example which shows you how to use a palette for a school.
```{r example}
library(schoolcolors)
## basic example code
my_pal <- school_palette("college_of_william_and_mary")
as.character(my_pal)
my_pal
```