plot_post | R Documentation |
Plot posterior and prior (optional) distributions. Currently limited to the normal distribution.
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
)
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.