Description Usage Arguments Value Examples
View source: R/residual_plots.R
Creates scatter plot of residuals and fitted values (and optionally also selected variables).
| 1 | residual_scatterplots(df, model, ...)
 | 
| df | A data frame | 
| model | A model object or valid formula | 
| ... | Any number of (unquoted) variable names to plot the residuals against. If none are supplied, only fitted values will be shown. | 
A scatter plot of the relationship between the supplied variable(s) and the residuals
| 1 2 | mtcars %>%
    residual_scatterplots(mpg ~ hp + cyl, hp, wt)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.