nhl.colors {colorr} | R Documentation |
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").
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
## 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)