Merge branch 'master' of github.com:hadley/r4ds

This commit is contained in:
hadley 2016-09-16 14:02:44 -05:00
commit 40eb4b4be9
2 changed files with 1 additions and 3 deletions

View File

@ -453,7 +453,7 @@ ggplot(data = diamonds) +
geom_point(mapping = aes(x = carat, y = price))
```
Scatterplots become less useful as the size of your dataset grows, because points begin to overplot, and pile up into areas of uniform black (as above). This problem is similar to showing the distribution of price by color using a scatterplot:
Scatterplots become less useful as the size of your dataset grows, because points begin to overplot, and pile up into areas of uniform black (as above). This problem is similar to showing the distribution of price by cut using a scatterplot:
```{r, dev = "png"}
ggplot(data = diamonds) +

View File

@ -14,9 +14,7 @@ For more historical context on factors, I recommend [_stringsAsFactors: An unaut
To work with factors, we'll use the __forcats__ package, which provides tools for dealing with **cat**egorical variables (and it's an anagram of factors!). It provides a wide range of helpers for working with factors. We'll also need dplyr for some data manipulation, and ggplot2 for visualisation.
```{r setup, message = FALSE}
# devtools::install_github("hadley/forcats")
library(forcats)
library(ggplot2)
library(dplyr)
```