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)

Arguments

n

Number of colors.

Details

Falls back to scale_fill_hue().

Value

A vector of colors.


volker documentation built on April 12, 2025, 9:16 a.m.