Plot a function together with its confidence/credible bands
Plot a function together with its confidence/credible bands
This routine typically plots a function together with its confidence or credible bands. The credible band can be indicated either by additional lines or by a shaded region or by both.
x: a numeric vector with x coordinates corresponding to y, low, upp.
y: a numeric vector with y coordinates of the function to plot.
low: a numeric vector with y coordinates of the lower limit of the credible band.
upp: a numeric vector with y coordinates of the upper limit of the credible band.
type: argument with the same meaning as type in plot.default.
band.type: a character which specifies the graphical way to show the credible band, ls stands for line and shaded region, s stands for shaded region only and l stands for line only.
add: if TRUE then everything is added to the current plot.
col, lty, lwd: graphical paramters to draw the x-y line.
cbcol, cblty, cblwd: graphical parameters to draw the x-low and x-upp lines.
scol, slwd: graphical parameters for the shaded region between the credible/confidence bounds.