vlkr_colors_discrete: Get colors for discrete scales

View source: R/plots.R

vlkr_colors_discreteR Documentation

Get colors for discrete scales

Description

If the option ggplot2.discrete.fill is set, gets color values from the first list item that has enough colors and reverses them to start filling from the left in grouped bar charts.

Usage

vlkr_colors_discrete(n = NULL, inv = FALSE)

Arguments

n

Number of colors.

inv

Whether to get a text color with good contrast on the chosen fill colors.

Details

Falls back to scale_fill_hue().

Value

A vector of colors.


volker documentation built on Nov. 5, 2025, 5:21 p.m.