There are three types of plots that are currently written in the package:
plot_fitted
Plot the fitted regression line with credibility bands.
plot_predict
Plot residuals against fitted values.
plot_iter
Plot the progression of the log-likelihood value over time.
The S3 method plot
for class ipriorMod
currently returns plot_fitted
.
# S3 method for ipriorMod
plot(x, ...)plot_resid(x)
plot_fitted_multilevel(
x,
X.var = 1,
grp.var = 1,
facet = c(2, 3),
cred.bands = TRUE,
show.legend = TRUE,
show.points = TRUE,
x.lab = NULL,
y.lab = NULL,
grp.lab = NULL,
extrapolate = FALSE
)
plot_fitted(x, X.var = 1, cred.bands = TRUE, size = 1, linetype = "solid")
plot_iter(x, niter.plot = NULL, lab.pos = c("up", "down"))
plot_ppc(x, draws = 100)
An ipriorMod
object.
Not used
The index of the X variable to plot.
Index of the grouping variable for multilevel plots.
The index of the X variable in which to facet. This is a vector of maximum length 2.
Logical. Plot the confidence intervals? Defaults to
TRUE
.
Logical. Show legend?
Logical. Show data points?
(Optional) X axis label.
(Optional) Y axis label.
(Optional) The name for the groups, which is also the legend title.
Logical. Extend the fitted regression line to fill the plot?
Size of the fitted line
Type of the fitted line
(Optional) Vector of length at most two, indicating the start and end points of the iterations to plot.
Adjust the position of the log-likelihood label.
Number of draws for posterior predictive check.
The index of the groups.
See ggplot2 documentation for the plotting parameters.