Start banging out factors chapter

This commit is contained in:
hadley
2016-08-16 17:06:51 -05:00
parent 5a29a718f9
commit 8815e8f91a
6 changed files with 155 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ Now you need to _communicate_ the result of your analysis to others. Your audien
In this chapter, we'll focus once again on ggplot2. We'll also use a little dplyr for data manipulation, and a few ggplot2 extension packages, including __ggrepel__ and __viridis__. Rather than loading those extension here we'll refer to their functions explicitly with the `::` notation. That will help make it obvious what functions are built into ggplot2, and what functions come from other packages.
```{r}
```{r, message = FALSE}
library(ggplot2)
library(dplyr)
```
@@ -473,7 +473,7 @@ ggplot(mpg, aes(displ, hwy)) +
theme_bw()
```
ggplot2 includes eight themes by default, as shown in Figure \@ref(fig:themes). Many more are included in add-on packages like __ggthemes__ (<https://github.com/jrnold/ggthemes>), by Jeremy Arnold.
ggplot2 includes eight themes by default, as shown in Figure \@ref(fig:themes). Many more are included in add-on packages like __ggthemes__ (<https://github.com/jrnold/ggthemes>), by Jeffrey Arnold.
```{r themes, echo = FALSE, fig.cap = "The eight themes built-in to ggplot2."}
knitr::include_graphics("images/visualization-themes.png")