View source: R/stat_resid_leverage.R
stat_resid_leverage | R Documentation |
Residual vs. leverage plot.
stat_resid_leverage(
alpha = 0.5,
method = "loess",
se = FALSE,
color = "steelblue",
...
)
alpha |
Adjust transparency of points. |
method |
Method for fitting the line to the points. |
se |
Keep standard error bands around line? |
color |
Color of the line. |
... |
Currently ignored. For extendability. |
A 'ggplot2' layer for plotting a fitted vs. residual scatter plot.
data(mtcars)
model <- lm(mpg ~ cyl + disp + hp, data = mtcars)
ggplot2::ggplot(data = model) + stat_resid_leverage()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.