
Plot method for posterior predictive checks
Source:R/plot.performance_pp_check.R
print.see_performance_pp_check.Rd
The plot()
method for the performance::check_predictions()
function.
Usage
# S3 method for see_performance_pp_check
print(
x,
size_line = 0.5,
line_alpha = 0.15,
size_bar = 0.7,
style = theme_lucid,
colors = unname(social_colors(c("green", "blue"))),
...
)
# S3 method for see_performance_pp_check
plot(
x,
size_line = 0.5,
line_alpha = 0.15,
size_bar = 0.7,
style = theme_lucid,
colors = unname(social_colors(c("green", "blue"))),
...
)
Arguments
- x
An object.
- size_line
Numeric value specifying size of line geoms.
- line_alpha
Numeric value specifying alpha of lines indicating
yrep
.- size_bar
Size of bar geoms.
- style
A ggplot2-theme.
- colors
Character vector of length two, indicating the colors (in hex-format) for points and line.
- ...
Arguments passed to or from other methods.
Examples
if (require("performance")) {
model <- lm(Sepal.Length ~ Species * Petal.Width + Petal.Length, data = iris)
check_posterior_predictions(model)
}