Learn R Programming

gglm (version 1.0.4)

stat_scale_location: stat_scale_location

Description

Scale location diagnostic plot.

Usage

stat_scale_location(
  alpha = 0.5,
  na.rm = TRUE,
  se = FALSE,
  method = "loess",
  color = "steelblue",
  ...
)

Value

A `ggplot2` layer for plotting the scale location diagnostic plot.

Arguments

alpha

Adjust the transparency of points.

na.rm

Remove points with value NA?

se

Keep standard error bands around line?

method

Method for fitting the line to the points.

color

Color of the line.

...

Currently ignored. For extendability.

Examples

Run this code
data(mtcars)
model <- lm(mpg ~ cyl + disp + hp, data = mtcars)
ggplot2::ggplot(data = model) + stat_scale_location()

Run the code above in your browser using DataLab