| sframe_plot_regression_diagnostics | R Documentation |
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.
sframe_plot_regression_diagnostics(result, palette = c("web", "print"))
result |
A |
palette |
One of |
A named list of four ggplot2 objects (residuals_fitted, qq,
scale_location, leverage), or NULL if diagnostics are unavailable.
run_analysis_plan()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.