Merge pull request #120 from sibusiso16/patch-6

Update visualize.Rmd
This commit is contained in:
Hadley Wickham
2016-06-13 07:24:55 -05:00
committed by GitHub

View File

@@ -358,7 +358,7 @@ ggplot(data = diamonds) +
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}
ggplot(data = diamonds) +