Learn R Programming

see (version 0.10.0)

plot.see_check_distribution: Plot method for classifying the distribution of a model-family

Description

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

Usage

# S3 method for see_check_distribution
plot(x, size_point = 2, panel = TRUE, ...)

Value

A ggplot2-object.

Arguments

x

An object.

size_point

Numeric specifying size of point-geoms.

panel

Logical, if TRUE, plots are arranged as panels; else, single plots are returned.

...

Arguments passed to or from other methods.

Examples

Run this code
if (FALSE) { # identical(Sys.getenv("NOT_CRAN"), "true") && require("randomForest")
library(performance)
m <<- lm(mpg ~ wt + cyl + gear + disp, data = mtcars)
result <- check_distribution(m)
result
plot(result)
}

Run the code above in your browser using DataLab