| epl.colors | R Documentation |
Returns a named character vector of hex colors for an EPL team. Teams cover
the 2026-27 Premier League season, plus every club that appeared in colorr 1.0.1.
Call colorr.teams("epl") for the full list of team names.
epl.colors(
set = c("arsenal", "aston_villa", "bournemouth", "brentford", "brighton", "burnley",
"chelsea", "coventry_city", "crystal_palace", "everton", "fulham", "hull",
"ipswich_town", "leeds_united", "leicester", "liverpool", "man_city", "man_united",
"middlesbrough", "newcastle", "nottingham_forest", "southampton", "stoke_city",
"sunderland", "swansea_city", "tottenham", "watford", "west_bromich_albion",
"west_ham"),
legacy = FALSE
)
set |
Character string naming an EPL team. |
legacy |
Logical. If |
Named character vector of hex color strings.
Charles Crabtree charles.crabtree@monash.edu
colorr.teams to list teams, scale_fill_epl for the
ggplot2 scales.
# Manchester United colors
pal <- epl.colors("man_united")
pal
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)
# Tottenham Hotspur colors
epl.colors("tottenham")
# the palette that shipped with colorr 1.0.1
epl.colors("man_united", legacy = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.