analysis function to plot parameter posteriors added