Hi, I’m trying to use a labeller for mcmc_pairs to label the subplots along the diagonal. I’ve seen the discussion here which provides a workaround, but I’m working with an older script where it seems like I was able to pass a labeller argument to grid_args like so:
I’m not sure if bayesplot provides a way to relabel the subplots within a typical workflow, but here’s a workaround for now: The parameter names are coming from the Parameter dimension of x (the mcmc_draws object). You can change these names and it will be reflected in the plots. Here’s an updated version of your example:
If you have large numbers of parameters, you can often use various string functions to make systematic changes to the names, rather than hardcoding each one by hand. Here’s an example of the basic idea: