nhl.colors: NHL colors

Description Usage Arguments Value Author(s) Examples

View source: R/nhlcolors.r

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

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"))

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

 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)

Example output

    Black    Silver    Orange      Gold 
"#010101" "#A2AAAD" "#FC4C02" "#85714D" 
    Black      Blue    Silver    Purple 
"#010101" "#236192" "#A4A9AD" "#6F263D" 

colorr documentation built on May 1, 2019, 8:45 p.m.