Update visualize.Rmd

Hi Hadley. I changed "If you map the fill aesthetic to a third variable" to "If you map the fill aesthetic to another variable". I could be wrong but i believe this was a typo.
This commit is contained in:
sibusiso16 2016-06-13 12:12:39 +02:00 committed by GitHub
parent f84f26a7ec
commit e15b8ad2b8
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ ggplot(data = diamonds) +
geom_bar(mapping = aes(x = cut, fill = cut)) geom_bar(mapping = aes(x = cut, fill = cut))
``` ```
If you map the fill aesthetic to a third variable, like `clarity`, you get a stacked bar chart. Each colored rectangle represents a combination of `cut` and `clarity`. If you map the fill aesthetic to another variable, like `clarity`, you get a stacked bar chart. Each colored rectangle represents a combination of `cut` and `clarity`.
```{r} ```{r}
ggplot(data = diamonds) + ggplot(data = diamonds) +