Learn R Programming

see (version 0.5.1.1)

plot.see_compare_performance: Plot method for comparing model performances

Description

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

Usage

# S3 method for see_compare_performance
plot(x, size = 1, ...)

Arguments

x

An object.

size

Size of geoms. Depends on the context of the plot() function, so this argument may change size of points, lines or bars.

...

Arguments passed to or from other methods.

Value

A ggplot2-object.

Examples

Run this code
# NOT RUN {
library(performance)
data(iris)
lm1 <- lm(Sepal.Length ~ Species, data = iris)
lm2 <- lm(Sepal.Length ~ Species + Petal.Length, data = iris)
lm3 <- lm(Sepal.Length ~ Species * Petal.Length, data = iris)
result <- compare_performance(lm1, lm2, lm3)
result
plot(result)
# }

Run the code above in your browser using DataLab