plot_post: Plot parameter distributions

View source: R/plot.R

plot_postR Documentation

Plot parameter distributions

Description

Plot posterior and prior (optional) distributions. Currently limited to the normal distribution.

Usage

plot_post(
  prior_mean = 0,
  prior_sd = 1,
  show_prior = TRUE,
  post_mean = 0,
  post_sd = 1,
  names = NULL,
  length_out = 1000,
  xlab = "x",
  ylab = "Density",
  title = NULL,
  min_den = 1e-05,
  trans_fun = NULL
)

Arguments

prior_mean

Mean of the prior.

prior_sd

SD of the prior.

show_prior

Display prior distribution?

post_mean

Mean of the posterior.

post_sd

SD of the posterior.

names

Names of the posteriors (and priors) when multiple values are provided.

length_out

Number of points to plot (more points will result in smoother curves).

xlab

Label for the x axis.

ylab

Label for the y axis.

title

Plot title.

min_den

Drop points with densities below this threshold.

trans_fun

Function for transforming values (e.g. ⁠[exp]⁠, ⁠[inv_logit]⁠). Ignored if NULL.


PaulRegular/MSP documentation built on Dec. 16, 2024, 1:59 p.m.