Apply besthr theme consistently
apply_besthr_theme.RdApplies the besthr theme and color scales to a ggplot object based on configuration settings. This ensures consistent theming across all plot components.
Examples
library(ggplot2)
p <- ggplot(mtcars, aes(mpg, wt, color = factor(cyl))) +
geom_point()
cfg <- besthr_plot_config(theme_style = "modern", color_palette = "okabe_ito")
apply_besthr_theme(p, cfg)