nba.colors: NBA colors

Description Usage Arguments Value Author(s) Examples

View source: R/nbacolors.r

Description

Function returns a vector of character strings from a selected NBA team's color palette. The team options are c("hawks", "hornets", "mavs", "warriors", "clippers", "heat", "pelicans", "magic", "blazers", "raptors", "celtics", "bulls", "nuggets", "rockets", "lakers", "bucks", "knicks", "sixers", "kings", "jazz", "nets", "cavs", "pistons", "pacers", "grizzlies", "wolves", "thunder", "suns", "spurs", "wizards", "sonics")

Usage

1
2
3
4
5
nba.colors(set = c("hawks", "hornets", "mavs", "warriors", "clippers", "heat",
  "pelicans", "magic", "blazers", "raptors", "celtics", "bulls", "nuggets",
  "rockets", "lakers", "bucks", "knicks", "sixers", "kings", "jazz", "nets",
  "cavs", "pistons", "pacers", "grizzlies", "wolves", "thunder", "suns",
  "spurs", "wizards", "sonics"))

Arguments

set

Character string denoting an NBA team's color palette.

Value

Vector of character strings from the selected NBA 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 Pistons colors
(pal = nba.colors("pistons"))
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)

# Milwaukee Bucks colors
(pal = nba.colors("bucks"))
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)

## End(Not run)

Example output

Pistons Blue  Pistons Red Pistons Navy 
   "#006BB6"    "#ED174C"    "#001F70" 
      Dark Green      Bucks Cream Light Royal Blue            Black 
       "#00471B"        "#EEE1C6"        "#0077C0"        "#000000" 

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