Merge branch 'master' of github.com:hadley/r4ds
This commit is contained in:
commit
0b5177fc0f
|
@ -599,7 +599,7 @@ Finally, if your work is meaningful at all, it will have an audience, which mean
|
||||||
knitr::include_graphics("images/EDA-data-science-4.png")
|
knitr::include_graphics("images/EDA-data-science-4.png")
|
||||||
```
|
```
|
||||||
|
|
||||||
This model od data science forms a roadmap for the rest of the book.
|
This model of data science forms a roadmap for the rest of the book.
|
||||||
|
|
||||||
* Part 1 of the book covered the central tasks of the model above, Exploratory Data Analysis.
|
* Part 1 of the book covered the central tasks of the model above, Exploratory Data Analysis.
|
||||||
|
|
||||||
|
|
|
@ -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) +
|
||||||
|
|
Loading…
Reference in New Issue