Learn R Programming

volker (version 3.0.0)

vlkr_colors_discrete: 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)

Value

A vector of colors.

Arguments

n

Number of colors.

Details

Falls back to scale_fill_hue().