
Last chance! 50% off unlimited learning
Sale ends in
The plot()
method for the performance::check_outliers()
function.
# S3 method for see_check_outliers
plot(
x,
size_text = 3.5,
size_line = 0.8,
dot_alpha = 0.8,
colors = c("#3aaf85", "#1b6ca8", "#cd201f"),
rescale_distance = TRUE,
type = c("dots", "bars"),
show_labels = TRUE,
...
)
An object.
Numeric value specifying size of text labels.
Numeric value specifying size of line 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. If TRUE
, distance values are rescaled
to a range from 0 to 1. This is mainly due to better catch the differences
between distance values.
Character vector, indicating the type of plot.
Logical. If TRUE
, text labels are displayed.
Arguments passed to or from other methods.
A ggplot2-object.
# 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