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")
#> [1] "#0000FFA0" "#A0A0A0A0" "#FF0000A0"
derive_ci_colors("okabe_ito", "modern")
#> [1] "#0072B2AA" "#999999AA" "#D55E00AA"
derive_ci_colors("viridis", "classic")
#> [1] "#440154AB" "#21908CAB" "#FDE725AB"