I am trying to run JAGS using the runjags
package and produce customized plots - change colors of the chains (the full model code is in the question https://stats.stackexchange.com/q/62006/5509):
require("runjags")
out2 <- run.jags("Poisson.OD.t.test.txt", params, win.data, nc, inits,
nb*4/5, ni, nb*1/5)
plot(out2, layout = c(4, 2))
But it seems impossible to change the plot parameters. In ?runjagsclass they write:
The plot method produces trace and density plots (note that these are pre-plotted and stored inside the runjags object, so the usual options to lattice or plot functions are not available).
This seems that the plots are already made in the run.jags
call! But that does not seem to allow to change the plot options as well.
Questions:
How to change the plot parameters, like chain colors?
Why do they create plots in the
run.jags
already? Usually well designed application will separate the logic (model computation) and the outputs. Is there any special reason for that?