residual_scatterplots: Creates scatter plot of residuals and fitted values (and...

Description Usage Arguments Value Examples

View source: R/residual_plots.R

Description

Creates scatter plot of residuals and fitted values (and optionally also selected variables).

Usage

1

Arguments

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.

Value

A scatter plot of the relationship between the supplied variable(s) and the residuals

Examples

1
2
mtcars %>%
    residual_scatterplots(mpg ~ hp + cyl, hp, wt)

jameshasbany/fastlm documentation built on July 26, 2020, 9:40 a.m.