Learn R Programming

spanner (version 1.0.2)

spanner_pal: Spanner color palette

Description

Returns a named vector of colors for use in spanner visualizations. The palette includes 10 distinct colors suitable for categorical data visualization.

Usage

spanner_pal()

Arguments

Value

A named character vector of hex color codes

Examples

Run this code
# \donttest{
# Get the palette
colors <- spanner_pal()

# Use in a plot
barplot(1:10, col = spanner_pal(), names.arg = names(spanner_pal()), las = 2)
# }

Run the code above in your browser using DataLab