Closed guiguerin closed 6 years ago
On top of this problem, the axis range for each MCMC plot and each posterior density plot is set based on the range of values for the first chain. When the other two chains diverge from the first, the corresponding values are out of range and thus don't appear on the graph!
A solution to this problem could be offered by the function matplot.
This takes a little bit more time. I discovered some odd things which have to be fixed first, otherwise the plotting cannot be tweaked as requested:
mcmc.list
is requested, however, if some is provided it crashes mcmc
objectjags.model
output, but some kind of object which is subset beforeMCMC_plot()
needed to be checkedSuggestion:
The function should be replaced by a modification using the coda plot functions.
I replaced the function with a new one, there was no other way. Should work now, please check
Ok, I guess this is ok now.
Expected behaviour
There should be proper titles for the axes of the figures produced by the function MCMC_plot (or one Age computation function, which calls MCMC_plot). For the chains (left panel), xlab = iteration, ylab = Age (ka) for the top row, D (Gy) for the middle row, sD (Gy) for the bottom row.
Observed behaviour
When running the function MCMC_plot or one Age computation function, several problems appear in the figures showing the MCMC (unnecessary titles appear, but no axis title appears).
Running mini example