stat_scale_location: stat_scale_location

Description Usage Arguments Value Examples

View source: R/stat_scale_location.R

Description

Scale location diagnostic plot.

Usage

1
2
3
4
5
6
7
8
stat_scale_location(
  alpha = 0.5,
  na.rm = TRUE,
  se = FALSE,
  method = "loess",
  color = "steelblue",
  ...
)

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.

Value

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

Examples

1
2
3
data(mtcars)
model <- lm(mpg ~ cyl + disp + hp, data = mtcars)
ggplot2::ggplot(data = model) + stat_scale_location()

gglm documentation built on Oct. 23, 2020, 7:57 p.m.