Description Usage Arguments Value Author(s) Examples
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")
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"))
|
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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.