From 2e3ee662c0a4cf0ec8ab92f02d75d1943477c275 Mon Sep 17 00:00:00 2001 From: hadley Date: Fri, 15 Jul 2016 16:02:42 -0500 Subject: [PATCH] And another one --- variation.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)