Plot prior distribution(s)

plot_prior(
  x,
  param = NULL,
  facets = FALSE,
  file = NULL,
  replicates = 10000,
  geom = ggplot2::geom_density,
  ...
)

Arguments

x

Either an object of the class demografr_abc, or a list of prior sampling statements

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.

facets

Should individual parameters be plotting on a facet each?

file

Output file for a figure saved via ggsave

replicates

How many samples to simulate from each prior for plotting?

geom

Either ggplot2::geom_histogram or ggplot2::geom_density

...

Optional argument which will be passed to ggsave

Value

A ggplot2 plot object