nhl.colors {colorr} | R Documentation |
NHL colors
Description
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").
Usage
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"))
Arguments
set |
Character string denoting an NHL team's color palette. |
Value
Vector of character strings from the selected NHL team's color palette.
Author(s)
Charles Crabtree ccrabtr@umich.edu
Examples
## 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)
[Package colorr version 1.0.0 Index]