Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
0e1e446
.ppc_calibration_overlay_data, and ppc_calibration_overlay(_grouped)
TeemuSailynoja Apr 29, 2025
d784405
draft of ppc_calibration plots
TeemuSailynoja May 19, 2025
5cf62f9
Add example for ppc_calibration_overlay()
TeemuSailynoja May 22, 2025
01ac826
Fix ppc_calibration_grouped()
TeemuSailynoja May 22, 2025
f9806eb
fix typo preventing building doc
jgabry May 22, 2025
4f09a00
Merge branch 'master' of github.com:TeemuSailynoja/bayesplot into add…
TeemuSailynoja Jun 12, 2025
5efdf47
Add ppc_calibration plots to namespace and docs.
TeemuSailynoja Jul 3, 2025
14eb2dc
Merge branch 'master' of github.com:stan-dev/bayesplot into add_ppc_c…
TeemuSailynoja Jul 3, 2025
a8b4264
Sync process. WIP. ISSUE: ppc_calibratrion loses the posterior mean.
TeemuSailynoja Jul 15, 2025
56d6662
Merge branch 'master' into add_ppc_calibration
florence-bockting Apr 9, 2026
293151a
update ppc-calibration with consistency and confidence method
Apr 9, 2026
bbd03a3
refactor: merge new changes into existing code
Apr 9, 2026
2d30c46
docs: update ppc-calibration
Apr 9, 2026
82986b4
feature: add psis_object to ppc_loo_calibration; adjust helptext size
Apr 16, 2026
6c665f3
refactor: remove x_scale arg and adj. help_text in ppc-calibration plots
Apr 21, 2026
245dcfa
Merge branch 'master' into add_ppc_calibration
florence-bockting Apr 21, 2026
b0ad5f4
refactor: remove interval_type argument and adjust corresponding tests
May 4, 2026
789de2f
docs: add vignette for ppc-calibration plot
May 4, 2026
1778d02
docs: update function documentation
May 4, 2026
6c75a20
docs: load dplyr in vignette
May 5, 2026
7cff4da
tests: update snapshots
May 5, 2026
6cefc64
docs: update vignette ppc-calibration
May 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,16 @@ Imports:
tidyselect,
utils
Suggests:
brms,
cmdstanr,
ggdist,
ggfortify,
gridExtra (>= 2.2.1),
hexbin,
knitr (>= 1.16),
loo (>= 2.0.0),
monotone,
patchwork,
RColorBrewer,
rmarkdown (>= 1.0.0),
rstan (>= 2.17.1),
Expand Down
9 changes: 9 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ export(ppc_bars)
export(ppc_bars_data)
export(ppc_bars_grouped)
export(ppc_boxplot)
export(ppc_calibration)
export(ppc_calibration_data)
export(ppc_calibration_grouped)
export(ppc_calibration_interval_data)
export(ppc_calibration_interval_data_grouped)
export(ppc_calibration_overlay)
export(ppc_calibration_overlay_grouped)
export(ppc_data)
export(ppc_dens)
export(ppc_dens_overlay)
Expand All @@ -144,6 +151,8 @@ export(ppc_intervals_data)
export(ppc_intervals_grouped)
export(ppc_km_overlay)
export(ppc_km_overlay_grouped)
export(ppc_loo_calibration)
export(ppc_loo_calibration_grouped)
export(ppc_loo_intervals)
export(ppc_loo_pit)
export(ppc_loo_pit_data)
Expand Down
11 changes: 11 additions & 0 deletions R/bayesplot-ggplot-themes.R
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,14 @@ bayesplot_theme_replace <- function(...) {
.bayesplot_theme_env$current <- theme_default()
.bayesplot_theme_env$gg_current <- ggplot2::theme_grey()

.theme_text_size <- function(theme = bayesplot_theme_get()) {
el <- ggplot2::calc_element("text", theme)
size <- el$size
if (is.null(size) && isS4(el)) {
size <- el@size
}
if (!is.numeric(size) || length(size) != 1 || is.na(size)) {
size <- 12
}
size
}
Loading
Loading