Select colours for plotting simulation scenarios

spim_scenario_cols(
  scenarios,
  weight = 0.3,
  palette = "bright",
  preview = FALSE
)

Arguments

scenarios

Unique scenario names. Scenarios with [High R] will darken the colour for the corresponding central scenario and scenarios with [Low R] will brighten the colour for the corresponding central scenario.

weight

weight passed to mix_cols to darken/brighten colours for high/low R scenarios

palette

Colour palette, passed to khroma::colour

preview

If TRUE then plots the final colour scheme with khroma::plot_scheme

Examples

spim_scenario_cols(c("Step 4", "Step 4 [High R]", "Step 4 [Low R]"))
#>          Step 4 Step 4 [High R]  Step 4 [Low R] 
#>       "#4477AA"       "#2F5376"       "#7C9FC3" 

spim_scenario_cols(c("Step 3", "Step 3 [High R]", "Step 4"))
#>          Step 3          Step 4 Step 3 [High R] 
#>       "#4477AA"       "#EE6677"       "#2F5376"