plot_posterior_density: Plot the density of raw data, point estimates and confidence...

Description Usage Arguments

Description

Plot the density of raw data, point estimates and confidence interval.

Usage

1
2
plot_posterior_density(predictive_sample, dat, plot_name,
  plot_ci = FALSE, plot_hist = TRUE, legend_pos = "topright", ...)

Arguments

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.


jesscyzhao/cyrutil documentation built on May 17, 2019, 2:15 a.m.