Here's a tip for anyone using stan_scat. In attempting to run stan_scat on all pairs of parameters from a list of parameter, I ran into a bizarre and aggravating issue. Although
stan_scat(fit, par_names[c(i,j)])
displays a posterior scatterplot of parameter par_names[i] versus par_names[j],
for (i in 1:(n-1))
for (j in (i+1):n) {
stan_scat(fit, par_names[c(i,j)])
readline()
}
displays absolutely nothing. Ditto for
for (i in 1:1) stan_scat(fit, par_names[1:2])
This gave me considerable heartburn until I realized that stan_scat doesn't actually display anything -- it just returns a ggplot object, which you have to print() in order for it to be displayed. The command line automatically calls print() on the value of any expression entered, giving the illusion that stan_scat() itself is displaying the scatterplot when it is called in isolation.