colorr-package: colorr: color palettes for sports teams

colorr-packageR Documentation

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.

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.

Author(s)

Maintainer: Charles Crabtree charles.crabtree@monash.edu

See Also

Useful links:


colorr documentation built on Aug. 22, 2026, 5:08 p.m.