colorr (version 1.0.0)

nba.colors: NBA colors

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

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.

Examples

Run this code
## 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)
## ---------------------------------------------

Run the code above in your browser using DataLab