color_list: Simulate ggplot picking colours for a plot.

View source: R/run_shiny.R

color_listR Documentation

Simulate ggplot picking colours for a plot.

Description

Obtain a list of the colours that ggplot will use for a plot with n variable.

Usage

color_list(n)

Arguments

n

the number of variables in the simulated plot. Should match the number of variables in the simulation for this to be useful.

Value

hues, a list of the colours (specified in hex) that ggplot2 will use.


ZachLevine-11/McMasterPandemicShiny documentation built on Feb. 4, 2023, 9:09 a.m.