powered by
The plot() method for the performance::check_normality() function.
plot()
performance::check_normality()
# S3 method for see_check_normality plot( x, type = c("density", "qq", "pp"), data = NULL, size_line = 0.8, size_point = 2, alpha = 0.2, dot_alpha = 0.8, colors = c("#3aaf85", "#1b6ca8"), detrend = FALSE, ... )
An object.
Character vector, indicating the type of plot.
The original data used to create this object. Can be a statistical model.
Numeric value specifying size of line geoms.
Numeric specifying size of point-geoms.
Numeric value specifying alpha level of the confidence bands and point-geoms.
Character vector of length two, indicating the colors (in hex-format) for points and line.
Logical that decides if the plot should be detrended.
Arguments passed to or from other methods.
A ggplot2-object.
# 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