derive_ci_colors: Derive CI colors based on palette and theme

View source: R/themes.R

derive_ci_colorsR Documentation

Derive CI colors based on palette and theme

Description

Computes confidence interval fill colors that harmonize with the selected color palette and theme style. This ensures visual consistency between the observation panel colors and the bootstrap density shading.

Usage

derive_ci_colors(palette = "default", theme_style = "classic")

Arguments

palette

Character string specifying the color palette: "default", "okabe_ito", or "viridis"

theme_style

Character string specifying the theme: "classic" or "modern"

Value

A character vector of three hex colors with alpha for low, middle, and high CI regions

Examples

derive_ci_colors("default", "classic")
derive_ci_colors("okabe_ito", "modern")
derive_ci_colors("viridis", "classic")


besthr documentation built on March 18, 2026, 5:08 p.m.