Skip to contents

Override default colors, numeric parameters, and theme elements used by all pepVet plotting functions. Changes persist for the session. Call with no arguments to view the current configuration.

Usage

pepvet_plot_config(palette = NULL, params = NULL, theme = NULL)

Arguments

palette

Named list of color overrides. Names must match existing .pepvet_pal entries (e.g. list(brand = "#004488", good = "#2ECC71")). Sub-lists like verdict, component, and overlap are replaced entirely.

params

Named list of parameter overrides. Names must match existing .pepvet_params entries (e.g. list(verdict_good = 0.70, scatter_alpha = 0.90)).

theme

Named list of ggplot2 theme element overrides. Passed directly to ggplot2::theme() and applied on top of the base .pepvet_theme(). (e.g. list(legend.position = "right", plot.title = element_text(size = 14))).

Value

Invisibly returns a list with current palette, params, and theme.

Examples

if (requireNamespace("ggplot2", quietly = TRUE)) {
  # View current config
  pepvet_plot_config()

  # Customize brand color and Good threshold
  pepvet_plot_config(
    palette = list(brand = "#004488", good = "#2ECC71"),
    params  = list(verdict_good = 0.70)
  )

  # Reset to defaults
  pepvet_plot_config_reset()
}