
Plot method for classifying the distribution of a model-family
Source:R/plot.check_distribution.R
plot.see_check_distribution.Rd
The plot()
method for the performance::check_distribution()
function.
Usage
# S3 method for see_check_distribution
plot(x, size_point = 2, panel = TRUE, ...)
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
# \donttest{
if (require("randomForest") && require("performance")) {
m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars)
result <- check_distribution(m)
result
plot(result)
}
#> Loading required package: randomForest
#> randomForest 4.7-1.1
#> Type rfNews() to see new features/changes/bug fixes.
#>
#> Attaching package: ‘randomForest’
#> The following object is masked from ‘package:ggplot2’:
#>
#> margin
#> Warning: Removed 9 rows containing missing values (geom_segment).
#> Warning: Removed 9 rows containing missing values (geom_point).
# }