diff --git a/variation.Rmd b/variation.Rmd index 6f3ce40..83cc625 100644 --- a/variation.Rmd +++ b/variation.Rmd @@ -683,7 +683,7 @@ Finally, we could spot outliers in our data by examining the residuals of the mo ```{r echo = FALSE, fig.width = 3, fig.show='hold'} diamond_mod <- lm(y ~ x, data = diamonds3) -resids <- augment(diamond_mod) +resids <- broom::augment(diamond_mod) ggplot(resids) + geom_histogram(aes(x = .resid), binwidth = 0.1)