And another one

This commit is contained in:
hadley 2016-07-15 16:02:42 -05:00
parent 864ac2761e
commit 2e3ee662c0
1 changed files with 1 additions and 1 deletions

View File

@ -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)