Plot the density of raw data, point estimates and confidence interval.
1 2 | plot_posterior_density(predictive_sample, dat, plot_name,
plot_ci = FALSE, plot_hist = TRUE, legend_pos = "topright", ...)
|
predictive_sample: |
the point estimates |
dat: |
raw data |
plot_name: |
name of the plot |
plot_ci: |
boolean, default false, when true, check for additonal arguments to plot the confidence interval |
plot_hist: |
boolean, default true, when true, plot the histogram of raw data. |
legend_pos: |
string, default 'topright', can be changed to 'topleft'. |
lb: |
vector of lowerbound values of CI |
ub: |
vector of upperbound values of CI |
grid: |
vector of grid based on which lb and ub are calculated. |
level: |
str, the confidence level. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.