epl.colors: EPL colors

Description Usage Arguments Value Author(s) Examples

View source: R/eplcolors.r

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

1
2
3
4
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 ccrabtr@umich.edu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

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