INLAutils icon indicating copy to clipboard operation
INLAutils copied to clipboard

Interface to bayesplot plot

Open timcdlucas opened this issue 7 years ago • 2 comments
trafficstars

Copy pit plot from here.

https://arxiv.org/pdf/1806.02748.pdf

timcdlucas avatar Jun 08 '18 08:06 timcdlucas

It's from bayesplot. I guess a useful way to go INLA to bayesplot would be useful.

timcdlucas avatar Jun 08 '18 09:06 timcdlucas

Something like

bayesplot(inla_model, gg_bayes_plot) with gg_bayes_plot being a function from bayes plot.

The alternatives that are less good include...

out <- prep_bayesplot(inla_model)
gg_bayes_plot(out[[1]], out[[2]], out[[3]])

or exporting a version of every bayesplot function like gg_inla_bayes_plot.

Final option that may not work is like:

out <- prep_bayesplot(inla_model)
do.call(gg_bayes_plot, out)

timcdlucas avatar Jun 08 '18 09:06 timcdlucas