| nfl.colors | R Documentation |
Returns a named character vector of hex colors for an NFL team. Teams cover
the 2026 NFL season.
Call colorr.teams("nfl") for the full list of team names.
nfl.colors(
set = c("bears", "bengals", "bills", "broncos", "browns", "buccaneers", "cardinals",
"chargers", "chiefs", "colts", "commanders", "cowboys", "dolphins", "eagles",
"falcons", "giants", "jaguars", "jets", "lions", "niners", "packers", "panthers",
"patriots", "raiders", "rams", "ravens", "redskins", "saints", "seahawks",
"steelers", "texans", "titans", "vikings"),
legacy = FALSE
)
set |
Character string naming an NFL team.
The retired team name |
legacy |
Logical. If |
Named character vector of hex color strings.
Charles Crabtree charles.crabtree@monash.edu
colorr.teams to list teams, scale_fill_nfl for the
ggplot2 scales.
# Detroit Lions colors
pal <- nfl.colors("lions")
pal
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)
# Denver Broncos colors
nfl.colors("broncos")
# the palette that shipped with colorr 1.0.1
nfl.colors("lions", legacy = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.