Skip to content

Commit 125f243

Browse files
committed
use @tjmahr's way of labeling axes
1 parent 67b863c commit 125f243

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/ppc-errors.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ ppc_error_binned <-
322322
alpha = 0.25) {
323323
check_ignored_arguments(...)
324324

325+
qx <- enquo(x)
325326
data <- ppc_error_binnned_data(y, yrep, x = x, bins = bins)
326327
facet_layer <- if (nrow(yrep) == 1) {
327328
geom_ignore()
@@ -359,7 +360,7 @@ ppc_error_binned <-
359360
color = point_color
360361
) +
361362
labs(
362-
x = if (is.null(x)) "Predicted proportion" else deparse(substitute(x)),
363+
x = if (is.null(x)) "Predicted proportion" else as_label((qx)),
363364
y = "Average Errors \n (with 2SE bounds)"
364365
) +
365366
bayesplot_theme_get() +

0 commit comments

Comments
 (0)