set_group_colors: Determine quik ggplot2 fill colors

Description Usage Arguments

View source: R/plot_formatting.R

Description

This is a function containing which determines the fill colors to be used in the plot based on the type of colors desired. This is a sub function for quik_bars and quik_bullets.

Usage

1
set_group_colors(group_column, palette_type, color_names = NULL)

Arguments

group_column

The data frame column containing the levels

palette_type

A string. Allowed values are "diverging", "sequential", and "qualitative".

color_names

A string. If palette_type is "sequential", what colors should be used for the bars (i.e. "gray", "red", "dark red", "blue", "dark blue", "light blue", "gold", "green", "purple", "teal"). If palette_type is "manual", what colors should be used (e.g. c("Purple 5", "Blue 2"))


brascoball/ggquik documentation built on Feb. 14, 2021, 5:17 p.m.