Description Usage Arguments Value Author(s) Examples
Function returns a vector of character strings from a selected NHL team's color palette. The team options are c("ducks", "coyotes", "bruins", "sabres", "flames", "hurricanes", "blackhawks", "avalanche", "blue_jackets", "stars", "red_wings", "oilers", "panthers", "kings", "wild", "canadiens", "predators", "devils", "islanders", "rangers", "senators", "flyers", "penguins", "sharks", "blues", "lightning", "maple_leafs", "canucks", "golden_knights", "capitals", "jets").
1 2 3 4 5 | nhl.colors(set = c("ducks", "coyotes", "bruins", "sabres", "flames",
"hurricanes", "blackhawks", "avalanche", "blue_jackets", "stars", "red_wings",
"oilers", "panthers", "kings", "wild", "canadiens", "predators", "devils",
"islanders", "rangers", "senators", "flyers", "penguins", "sharks", "blues",
"lightning", "maple_leafs", "canucks", "golden_knights", "capitals", "jets"))
|
set |
Character string denoting an NHL team's color palette. |
Vector of character strings from the selected NHL team's color palette.
Charles Crabtree ccrabtr@umich.edu
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Anaheim Ducks colors
(pal = nhl.colors("ducks"))
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)
# Colorado Avalanche colors
(pal = nhl.colors("avalanche"))
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)
## End(Not run)
|
Black Silver Orange Gold
"#010101" "#A2AAAD" "#FC4C02" "#85714D"
Black Blue Silver Purple
"#010101" "#236192" "#A4A9AD" "#6F263D"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.