sframe_plot_regression_diagnostics: Regression diagnostic plots for a regression_linear result

View source: R/plots.R

sframe_plot_regression_diagnosticsR Documentation

Regression diagnostic plots for a regression_linear result

Description

The four standard diagnostic panels (residuals vs fitted, normal Q-Q, scale-location, residuals vs leverage), built from the plain data frame run_analysis_plan() attaches to a regression_linear result rather than the lm object itself, so the result stays JSON-serialisable.

Usage

sframe_plot_regression_diagnostics(result, palette = c("web", "print"))

Arguments

result

A regression_linear result list containing a diagnostics data frame (as produced internally by run_analysis_plan()).

palette

One of "web" or "print". See sframe_brand().

Value

A named list of four ggplot2 objects (residuals_fitted, qq, scale_location, leverage), or NULL if diagnostics are unavailable.

See Also

run_analysis_plan()


surveyframe documentation built on July 25, 2026, 1:07 a.m.