Skip to content

Spread-Level plot for variance diagnostics

Source: R/plotDiagnostics.R ยท Help: ?plotSpreadLevel

Plots the square root of the absolute residuals against fitted values. A lowess smooth is added to highlight trends.

Usage

plotSpreadLevel(model)

Arguments

model
A fitted model of class lm.

Value

A ggplot object.

Examples

data(mtcars)
m <- lm(mpg ~ wt + qsec, data = mtcars)
plotSpreadLevel(m)