Internal plotting helper to visualize median differences over time (or other x-axis), including HPD interval ribbons and stratified lines.
plot_time_effect(
data,
x_lab,
y_lab,
family,
color_palette,
plot_theme,
legend_title = "Strata"
)
A ggplot object.
A data frame with columns: x, median_differences, hpd_lower, hpd_upper, Strata.
Label for the x-axis.
Label for the y-axis.
A string indicating model family ("binomial", "poisson", or other).
A named vector of colors for strata.
A ggplot2 theme object.
Title for the legend.