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.
Arguments
- palette
Named list of color overrides. Names must match existing
.pepvet_palentries (e.g.list(brand = "#004488", good = "#2ECC71")). Sub-lists likeverdict,component, andoverlapare replaced entirely.- params
Named list of parameter overrides. Names must match existing
.pepvet_paramsentries (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))).
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()
}
