Plot posterior distribution of given parameters

plot_posterior(
  abc,
  param = NULL,
  posterior = c("adj", "unadj"),
  facets = FALSE,
  file = NULL,
  ...
)

Arguments

abc

ABC object generated by run_abc

param

A character vector containing either parameter names to summarize, or a regex-like matches to be used for subsetting. If NULL (the default), all parameters will be extracted.

posterior

Should an "adj"-usted or "unadj"-usted posterior be extracted? (Default is "adj").

facets

Should individual distributions be plotted in separate facets? Default is FALSE.

file

Output file for a figure saved via ggsave

...

Optional argument which will be passed to ggsave

Value

A ggplot2 plot object