View source: R/plot.check_outliers.R
plot.see_check_outliers | R Documentation |
The plot()
method for the performance::check_outliers()
function.
## S3 method for class 'see_check_outliers'
plot(
x,
size_text = 3.5,
size_line = 0.8,
size_title = 12,
size_axis_title = base_size,
base_size = 10,
dot_alpha = 0.8,
colors = c("#3aaf85", "#1b6ca8", "#cd201f"),
rescale_distance = TRUE,
type = c("dots", "bars"),
show_labels = TRUE,
...
)
x |
An object. |
size_text |
Numeric value specifying size of text labels. |
size_line |
Numeric value specifying size of line geoms. |
base_size , size_axis_title , size_title |
Numeric value specifying size of axis and plot titles. |
dot_alpha |
Numeric value specifying alpha level of the point geoms. |
colors |
Character vector of length two, indicating the colors (in hex-format) for points and line. |
rescale_distance |
Logical. If |
type |
Character vector, indicating the type of plot.
Options are |
show_labels |
Logical. If |
... |
Arguments passed to or from other methods. |
A ggplot2-object.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.