Learn R Programming

colorr (version 1.1.0)

wnba.colors: WNBA colors

Description

Returns a named character vector of hex colors for a WNBA team. Teams cover the 2026 WNBA season, including the Portland Fire and Toronto Tempo expansion teams. Call colorr.teams("wnba") for the full list of team names.

Usage

wnba.colors(
  set = c("aces", "dream", "fever", "fire", "liberty", "lynx", "mercury", "mystics",
    "sky", "sparks", "storm", "sun", "tempo", "valkyries", "wings"),
  legacy = FALSE
)

Value

Named character vector of hex color strings.

Arguments

set

Character string naming a WNBA team.

legacy

Logical. Ignored for the WNBA; colorr 1.0.1 shipped no WNBA palettes. Kept so every colorr palette function takes the same arguments.

Author

Charles Crabtree [email protected]

See Also

colorr.teams to list teams, scale_fill_wnba for the ggplot2 scales.

Examples

Run this code
# New York Liberty colors
pal <- wnba.colors("liberty")
pal
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)

# Golden State Valkyries colors
wnba.colors("valkyries")

Run the code above in your browser using DataLab