timcdlucas / INLAutils

R package providing utilities for INLA
Other
26 stars 10 forks source link

Interface to bayesplot plot #50

Open timcdlucas opened 6 years ago

timcdlucas commented 6 years ago

Copy pit plot from here.

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

timcdlucas commented 6 years ago

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

timcdlucas commented 6 years ago

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)