| colorr-package | R Documentation |
colorr provides color palettes for professional sports teams as named character vectors of hex colors, and as ggplot2 colour and fill scales.
Palette functions, one per league:
epl.colors, soccer.colors, mlb.colors,
nba.colors, wnba.colors, nfl.colors and
nhl.colors. colorr.colors does the same job when the
league is itself a variable.
To find out what is available, use colorr.leagues and
colorr.teams.
For ggplot2, every league has scale_colour_*, scale_color_* and
scale_fill_* constructors, e.g. scale_fill_nba. They are built
on colorr.pal, which converts any team palette into a palette function.
Every palette function takes legacy = TRUE, which returns the palette that
shipped with colorr 1.0.1 rather than the current-season one.
Maintainer: Charles Crabtree charles.crabtree@monash.edu
Useful links:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.