I have one more query @jonah (sorry!) - I can’t quite get this working with mcmc_rank_overlay
:
library(bayesplot)
library(dplyr)
library(ggplot2)
draws <- example_mcmc_draws()
my_labeller <- as_labeller(
x = c(
'alpha' = 'alpha',
'sigma' = 'epsilon',
'beta[1]' = 'gamma[0]', # intentional change
'beta[2]' = 'gamma[2]'
),
default = label_parsed
)
# works as expected
mcmc_combo(
x = draws,
combo = c("dens", "trace"),
facet_args = list(
ncol = 1,
labeller = my_labeller
)
)
# does not
mcmc_combo(
x = draws,
combo = c("rank_overlay", "trace"),
facet_args = list(
ncol = 1,
labeller = my_labeller
)
)
Created on 2020-05-19 by the reprex package (v0.3.0)