Learn R Programming

colorr (version 1.1.0)

colorr-package: colorr: color palettes for sports teams

Description

colorr provides color palettes for professional sports teams as named character vectors of hex colors, and as ggplot2 colour and fill scales.

Arguments

Author

Maintainer: Charles Crabtree [email protected]

Details

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.

See Also