plot_actual_vs_predicted: Plot actual vs predicted values

View source: R/plot_results.R

plot_actual_vs_predictedR Documentation

Plot actual vs predicted values

Description

Creates a scatter plot of actual vs predicted values with a 1:1 reference line.

Usage

plot_actual_vs_predicted(earth_result, response_idx = NULL)

Arguments

earth_result

An object of class "earthUI_result" as returned by fit_earth().

response_idx

Integer or NULL. For multivariate models, which response column to plot (1-based). Default NULL uses the first response.

Value

A ggplot2::ggplot object.

Examples


result <- fit_earth(mtcars, "mpg", c("cyl", "disp", "hp", "wt"))
plot_actual_vs_predicted(result)


earthUI documentation built on March 26, 2026, 1:07 a.m.