nfl.colors: NFL colors

Description Usage Arguments Value Author(s) Examples

View source: R/nflcolors.r

Description

Function returns a vector of character strings from a selected NFL team's color palette. The team options are c("cardinals", "falcons", "ravens", "bills", "panthers", "bears", "bengals", "browns", "cowboys", "broncos", "lions", "packers", "texans", "colts", "jaguars", "chiefs", "chargers", "rams", "dolphins", "vikings", "patriots", "saints", "giants", "jets", "raiders", "eagles", "steelers", "niners", "seahawks", "buccaneers", "titans", "redskins").

Usage

1
2
3
4
5
nfl.colors(set = c("cardinals", "falcons", "ravens", "bills", "panthers",
  "bears", "bengals", "browns", "cowboys", "broncos", "lions", "packers",
  "texans", "colts", "jaguars", "chiefs", "chargers", "rams", "dolphins",
  "vikings", "patriots", "saints", "giants", "jets", "raiders", "eagles",
  "steelers", "niners", "seahawks", "buccaneers", "titans", "redskins"))

Arguments

set

Character string denoting an NFL team's color palette.

Value

Vector of character strings from the selected NFL team's color palette.

Author(s)

Charles Crabtree ccrabtr@umich.edu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# Detroit Lions colors
(pal = nfl.colors("lions"))
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)

# Detroit Broncos colors
(pal = epl.colors("broncos"))
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)

## End(Not run)

colorr documentation built on May 1, 2019, 8:45 p.m.