From 96da3a71d55a23f1bfcabe1d968dddf67f5e9e30 Mon Sep 17 00:00:00 2001 From: Thomas Kluth Date: Mon, 27 Aug 2018 12:10:24 +0200 Subject: [PATCH] add grouped PPC example for facet_relabel_gg --- R/bayesplot-helpers.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/bayesplot-helpers.R b/R/bayesplot-helpers.R index 0843c465..63d48de4 100644 --- a/R/bayesplot-helpers.R +++ b/R/bayesplot-helpers.R @@ -234,6 +234,8 @@ #' facet_vars(p4) #' #' # relabeling facets in grouped PPC plots +#' pgroup <- ppc_scatter_avg_grouped(example_y_data(), example_yrep_draws(), example_group_data()) +#' pgroup <- facet_relabel_gg(pgroup, labels = c("GroupA" = "apples", "GroupB" = "oranges")) #' #' #'