Package 'colorr'

Title: Color Palettes for EPL, MLB, NBA, NHL, and NFL Teams
Description: Color palettes for EPL, MLB, NBA, NHL, and NFL teams.
Authors: Charles Crabtree [aut, cre]
Maintainer: Charles Crabtree <[email protected]>
License: MIT + file LICENSE
Version: 1.0.0
Built: 2024-11-21 05:04:54 UTC
Source: https://github.com/cdcrabtree/colorr

Help Index


EPL colors

Description

Function returns a vector of character strings from a selected EPL team's color palette. The team options are c("arsenal", "bournemouth", "burnley", "chelsea", "crystal_palace", "everton", "hull", "leicester", "liverpool", "man_city", "man_united", "middlesbrough", "southampton", "stoke_city", "sunderland", "swansea_city", "tottenham", "watford", "west_bromich_albion", "west_ham").

Usage

epl.colors(set = c("arsenal", "bournemouth", "burnley", "chelsea",
  "crystal_palace", "everton", "hull", "leicester", "liverpool", "man_city",
  "man_united", "middlesbrough", "southampton", "stoke_city", "sunderland",
  "swansea_city", "tottenham", "watford", "west_bromich_albion", "west_ham"))

Arguments

set

Character string denoting an EPL team's color palette.

Value

Vector of character strings from the selected EPL team's color palette.

Author(s)

Charles Crabtree [email protected]

Examples

## Not run: 
# Manchester United colors
(pal = epl.colors("man_united"))
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)

# Tottenham colors
(pal = epl.colors("tottenham"))
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)

## End(Not run)

MLB colors

Description

Function returns a vector of character strings from a selected MLB team's color palette. The team options are c("diamondbacks", "braves", "orioles", "red_sox", "cubs", "white_sox", "reds", "indians", "rockies", "tigers", "astros", "royals", "angels", "dodgers", "marlins", "brewers", "twins", "mets", "yankees", "athletics", "phillies", "pirates", "padres", "giants", "mariners", "cardinals", "rays", "rangers", "blue_jays", "nationals").

Usage

mlb.colors(set = c("diamondbacks", "braves", "orioles", "red_sox", "cubs",
  "white_sox", "reds", "indians", "rockies", "tigers", "astros", "royals",
  "angels", "dodgers", "marlins", "brewers", "twins", "mets", "yankees",
  "athletics", "phillies", "pirates", "padres", "giants", "mariners",
  "cardinals", "rays", "rangers", "blue_jays", "nationals"))

Arguments

set

Character string denoting an MLB team's color palette.

Value

Vector of character strings from the selected MLB team's color palette.

Author(s)

Charles Crabtree [email protected]

Examples

## Not run: 
# Colorado Rockies colors
(pal = mlb.colors("rockies"))
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)

# Seattle Mariners colors
(pal = mlb.colors("mariners"))
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)

## End(Not run)

NBA colors

Description

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

Usage

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

Arguments

set

Character string denoting an NBA team's color palette.

Value

Vector of character strings from the selected NBA team's color palette.

Author(s)

Charles Crabtree [email protected]

Examples

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

NFL colors

Description

Function returns a vector of character strings from a selected NFL team's color palette. The team options are c("cardinals", "falcons", "ravens", "bills", "panthers", "bears", "bengals", "browns", "cowboys", "broncos", "lions", "packers", "texans", "colts", "jaguars", "chiefs", "chargers", "rams", "dolphins", "vikings", "patriots", "saints", "giants", "jets", "raiders", "eagles", "steelers", "niners", "seahawks", "buccaneers", "titans", "redskins").

Usage

nfl.colors(set = c("cardinals", "falcons", "ravens", "bills", "panthers",
  "bears", "bengals", "browns", "cowboys", "broncos", "lions", "packers",
  "texans", "colts", "jaguars", "chiefs", "chargers", "rams", "dolphins",
  "vikings", "patriots", "saints", "giants", "jets", "raiders", "eagles",
  "steelers", "niners", "seahawks", "buccaneers", "titans", "redskins"))

Arguments

set

Character string denoting an NFL team's color palette.

Value

Vector of character strings from the selected NFL team's color palette.

Author(s)

Charles Crabtree [email protected]

Examples

## Not run: 
# Detroit Lions colors
(pal = nfl.colors("lions"))
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)

# Detroit Broncos colors
(pal = epl.colors("broncos"))
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)

## End(Not run)

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 [email protected]

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)