Learn R Programming

see (version 0.6.4)

print.see_performance_pp_check: Plot method for posterior predictive checks

Description

The plot() method for the performance::pp_check() function.

Usage

# S3 method for see_performance_pp_check
print(x, size_line = 0.7, line_alpha = 0.25, size_bar = 0.7, ...)

# S3 method for see_performance_pp_check plot(x, size_line = 0.7, line_alpha = 0.25, size_bar = 0.7, ...)

Arguments

x

An object.

size_line

Size of line geoms.

line_alpha

Alpha value of lines indicating yrep.

size_bar

Size of bar geoms.

...

Arguments passed to or from other methods.

Value

A ggplot2-object.

Examples

Run this code
# NOT RUN {
if (require("performance")) {
  model <- lm(Sepal.Length ~ Species * Petal.Width + Petal.Length, data = iris)
  pp_check(model)
}
# }

Run the code above in your browser using DataLab