nba_palette {nbapalettes} | R Documentation |
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
[Package nbapalettes version 0.1.0 Index]