Updated code for mcmc diagnostic plots