Learn R Programming

see (version 0.6.0)

plot.see_check_outliers: Plot method for checking outliers

Description

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

Usage

# S3 method for see_check_outliers
plot(x, size_text = 3.5, ...)

Arguments

x

An object.

size_text

Size of text labels.

...

Arguments passed to or from other methods.

Value

A ggplot2-object.

Examples

Run this code
# NOT RUN {
library(performance)
data(mtcars)
mt1 <- mtcars[, c(1, 3, 4)]
mt2 <- rbind(
  mt1,
  data.frame(mpg = c(37, 40), disp = c(300, 400), hp = c(110, 120))
)
model <- lm(disp ~ mpg + hp, data = mt2)
plot(check_outliers(model))
# }

Run the code above in your browser using DataLab