bayesqm-colors: Get or set the bayesqm colour scheme

bayesqm-colorsR Documentation

Get or set the bayesqm colour scheme

Description

Every plot in the package reads its palette through bayesqm_colors(). Call bayesqm_set_colors() to switch the active scheme for every subsequent plot. The available built-in schemes are "blue" (default), "teal", "red", "purple", and "grey". For full control, pass a named list with slots light, mid, dark, accent, grey, gridgrey, and fill.

Usage

bayesqm_colors()

bayesqm_set_colors(scheme)

Arguments

scheme

Character name of a built-in scheme, or a named list of colours with the slot names listed in the description.

Value

bayesqm_colors() returns the active palette as a named list. bayesqm_set_colors() returns the previous scheme name, invisibly.

Examples

bayesqm_colors()
fit <- demo_fit(N = 6, J = 10, K = 2, Td = 50, seed = 1)
bayesqm_set_colors("teal")
plot(fit)
bayesqm_set_colors("blue")  # restore default


bayesqm documentation built on June 18, 2026, 1:07 a.m.