Title: | An NBA Jersey Palette Generator |
Description: | Palettes generated from NBA jersey colorways. |
Date: | 2020-12-27 |
Version: | 0.1.0 |
Depends: | R (≥ 3.0) |
License: | MIT + file LICENSE |
LazyData: | true |
Imports: | dplyr |
Suggests: | ggplot2 |
URL: | https://github.com/murrayjw/nbapalettes |
BugReports: | https://github.com/murrayjw/nbapalettes/issues |
RoxygenNote: | 7.1.1 |
NeedsCompilation: | no |
Packaged: | 2021-01-05 15:55:00 UTC; joshu |
Author: | Murray Josh [aut, cre] |
Maintainer: | Murray Josh <joshua.murray@utoronto.ca> |
Repository: | CRAN |
Date/Publication: | 2021-01-07 14:10:02 UTC |
Palette options Generate a tibble of with palette options
Description
Palette options Generate a tibble of with palette options
Usage
available_palettes(team = "all")
Arguments
team |
return all available colors for a given team. Default is all available teams |
Value
A tibble containing the palette options for a given NBA team.
Examples
available_palettes()#'
available_palettes('raptors')#'
available_palettes('heat')
An NBA palette generator
Description
Color palettes associated with a large variety of NBA team jerseys.
Usage
nba_palette(name, n, type = c("discrete", "continuous"))
Arguments
name |
Name of desired palette. use 'available_palettes()' to see which options are available |
n |
Number of colors desired. Most palettes contain 3-5 colors although some contain as many as 8-10. All color schemes are derived from the following amazing resource: TruColor. If omitted, uses all colours. |
type |
Either "continuous" or "discrete". Use continuous if you want to automatically interpolate between colours. |
Value
A vector of colours.
Examples
nba_palette("raptors")
nba_palette("jazz_city")
nba_palette("nuggets_80s")
# If you need more colours than normally found in a palette, you
# can use a continuous palette to interpolate between existing
# colours
pal <- nba_palette(n = 21, name = "grizzlies", type = "continuous")
pal
Complete list of palettes
Description
Use nba_palette
to construct palettes of desired length.
Usage
nba_palettes
Format
An object of class list
of length 129.
NBA game results for the 2019-2020 season.
Description
A dataset containing results and total team statistics from each regular season NBA game from the 2019-2020 season. The data is can be obtained by using the 'game_logs()' function from the 'nbastatR' package
Usage
nba_results2020
Format
A data frame with 2118 rows and 47 variables:
Source
http://asbcllc.com/nbastatR/reference/game_logs.html
nbapalettes
Description
list of palettes from NBA jersey colorways
Details
list of palettes from NBA jersey colorways