Giter Site home page Giter Site logo

schoolcolors's Introduction

schoolcolors

CRAN status pkgdown build status

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.

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
      • 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

    college_of_william_and_mary = list(c())
  • Populated Colors

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

Example

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

schoolcolors's People

Contributors

dermcnor avatar cbenge509 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.