colorr.colors: Team colors from any league

View source: R/colorr-teams.R

colorr.colorsR Documentation

Team colors from any league

Description

League-agnostic version of epl.colors and friends: name the league and the team and get the palette back. Handy when the league is itself a variable.

Usage

colorr.colors(league, set, legacy = FALSE)

Arguments

league

Character string naming a league, as returned by colorr.leagues, or "soccer" for every soccer club at once.

set

Character string naming a team in that league. Team names retired since colorr 1.0.1, namely "indians" and "redskins", still resolve to the renamed franchise.

legacy

Logical. If TRUE, return the palette that shipped with colorr 1.0.1.

Value

Named character vector of hex color strings.

Author(s)

Charles Crabtree charles.crabtree@monash.edu

Examples

colorr.colors("nhl", "kraken")
colorr.colors("soccer", "real_madrid")

# the same palette either way
identical(colorr.colors("nba", "bucks"), nba.colors("bucks"))

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