View source: R/stat_scale_location.R
stat_scale_location | R Documentation |
Scale location diagnostic plot.
stat_scale_location(
alpha = 0.5,
na.rm = TRUE,
se = FALSE,
method = "loess",
color = "steelblue",
...
)
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. |
A 'ggplot2' layer for plotting the scale location diagnostic plot.
data(mtcars)
model <- lm(mpg ~ cyl + disp + hp, data = mtcars)
ggplot2::ggplot(data = model) + stat_scale_location()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.