| colorr.colors | R Documentation |
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.
colorr.colors(league, set, legacy = FALSE)
league |
Character string naming a league, as returned by
|
set |
Character string naming a team in that league. Team names retired since
colorr 1.0.1, namely |
legacy |
Logical. If |
Named character vector of hex color strings.
Charles Crabtree charles.crabtree@monash.edu
colorr.colors("nhl", "kraken")
colorr.colors("soccer", "real_madrid")
# the same palette either way
identical(colorr.colors("nba", "bucks"), nba.colors("bucks"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.