# NOT RUN {
thm <- theme_default()
class(thm)
names(thm)
# plot using the default theme
x <- example_mcmc_draws()
mcmc_hist(x)
# change the default font size and family
options(bayesplot.base_size = 10,
bayesplot.base_family = "sans")
mcmc_hist(x)
mcmc_areas(x, regex_pars = "beta")
# change back
options(bayesplot.base_size = 12,
bayesplot.base_family = "serif")
mcmc_areas(x, regex_pars = "beta")
# use one of the themes included in ggplot2
mcmc_dens_overlay(x) + ggplot2::theme_gray()
# }
Run the code above in your browser using DataLab