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