nba.colors {colorr} | R Documentation |
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")
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"))
set |
Character string denoting an NBA team's color palette. |
Vector of character strings from the selected NBA team's color palette.
Charles Crabtree ccrabtr@umich.edu
## 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)