Provides some ggplot visualisations of the posterior from MCMC_DLM objects.
# S3 method for MCMC_DLM
plot(x, type = "beta", include_intercept = FALSE, print_output = TRUE, ...)A ggplot object, except when type = 'lags', in which case it will be a list of ggplot objects. Will display the ggplot visual if print_output = TRUE.
An MCMC_DLM object.
One of "beta", "gamma", "xi", or "lags". Partial matching is supported. See Details below.
Logical indicating if the intercept should be included in the graphs.
Logical indicating whether or not the ggplot objects should be printed to the screen.
Extra arguments; currently unused.
Daniel Dempsey (daniel.dempsey0@gmail.com)
The type of plot generated is determined by the type argument. The options are:
beta: A ridgeplot of the regression slopes,
gamma: A bar chart of the mean probability of inclusion,
xi: A kernel density estimate plot of the negative binomial stopping parameter (of course, this only works for negative binomial regression fits),
lags: A collection of plots (supplied in a list), each containing a line chart of the lag-response for each dynamic variable.