Skip to content

Commit d97e7d9

Browse files
Updated y-axis label on ecdf difference plots.
1 parent c778513 commit d97e7d9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

R/ppc-distributions.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ ppc_pit_ecdf <- function(y,
647647
color = "yrep"
648648
),
649649
linetype = 2, show.legend = FALSE) +
650-
labs(y = "ECDF", x = "PIT") +
650+
labs(y = ifelse(plot_diff,"ECDF - difference","ECDF"), x = "PIT") +
651651
yaxis_ticks(FALSE) +
652652
scale_color_ppc() +
653653
bayesplot_theme_get()
@@ -735,7 +735,7 @@ ppc_pit_ecdf_grouped <-
735735
color = "yrep"
736736
),
737737
linetype = 2, show.legend = FALSE) +
738-
labs(y = "ECDF", x = "PIT") +
738+
labs(y = ifelse(plot_diff,"ECDF - difference","ECDF"), x = "PIT") +
739739
yaxis_ticks(FALSE) +
740740
bayesplot_theme_get() +
741741
facet_wrap("group") +

tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-diff.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-grouped-diff.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)