From 4dc077152a4b486c788711719202740eacb07e89 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 30 Jun 2023 14:10:13 +0200 Subject: [PATCH] fix --- vignettes/bayes_factors.Rmd | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/vignettes/bayes_factors.Rmd b/vignettes/bayes_factors.Rmd index eaabbbd04..5cb86fd63 100644 --- a/vignettes/bayes_factors.Rmd +++ b/vignettes/bayes_factors.Rmd @@ -1111,11 +1111,20 @@ fit_bayes <- stan_glm(Sepal.Length ~ Species, ``` -```{r} +```{r eval=FALSE} (pairs_bayes <- pairs(emmeans(fit_bayes, ~Species))) ggplot(stack(insight::get_parameters(pairs_bayes)), aes(x = values, fill = ind)) + - geom_density(size = 1) + + geom_density(linewidth = 1) + + facet_grid(ind ~ .) + + labs(x = "prior difference values") + + theme(legend.position = "none") +``` +```{r echo=FALSE, warning=FALSE, message=FALSE} +(pairs_bayes <- pairs(emmeans(fit_bayes, ~Species, data = iris))) + +ggplot(stack(insight::get_parameters(pairs_bayes)), aes(x = values, fill = ind)) + + geom_density(linewidth = 1) + facet_grid(ind ~ .) + labs(x = "prior difference values") + theme(legend.position = "none")