Learn R Programming

see (version 0.5.1.1)

plot.see_check_normality: Plot method for check model for (non-)normality of residuals

Description

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

Usage

# S3 method for see_check_normality
plot(
  x,
  type = c("density", "qq", "pp"),
  data = NULL,
  size = 0.8,
  point_size = 2,
  ...
)

Arguments

x

An object.

type

Character vector, indicating the type of plot.

data

The original data used to create this object. Can be a statistical model or such.

size

Size of geoms. Depends on the context of the plot() function, so this argument may change size of points, lines or bars.

point_size

Size of point-geoms.

...

Arguments passed to or from other methods.

Value

A ggplot2-object.

Examples

Run this code
# NOT RUN {
library(performance)
m <<- lm(mpg ~ wt + cyl + gear + disp, data = mtcars)
result <- check_normality(m)
plot(result)
# }

Run the code above in your browser using DataLab