Use unique figure dirs

This commit is contained in:
hadley 2016-01-18 08:23:01 -06:00
parent 505c61cfb8
commit 844226da7c
4 changed files with 7 additions and 4 deletions

View File

@ -9,7 +9,7 @@ title: Exploratory data analysis
library(ggplot2)
knitr::opts_chunk$set(
cache = TRUE,
fig.path = "figures/"
fig.path = "figures/eda/"
)
```

View File

@ -8,7 +8,7 @@ title: Expressing yourself in code
```{r, include = FALSE}
knitr::opts_chunk$set(
cache = TRUE,
fig.path = "figures/"
fig.path = "figures/functions/"
)
```

View File

@ -11,7 +11,10 @@ library(nycflights13)
library(ggplot2)
source("common.R")
options(dplyr.print_min = 6, dplyr.print_max = 6)
knitr::opts_chunk$set(fig.path = "figures/", cache = TRUE)
knitr::opts_chunk$set(
fig.path = "figures/transform/",
cache = TRUE
)
```
Visualisation is an important tool for insight generation, but it is rare that you get the data in exactly the right form you need for visualisation. Often you'll need to create some new variables or summaries, or maybe you just want to rename the variables or reorder the observations in order to make the data a little easier to work with. You'll learn how to do all that (and more!) in this chapter which will teach you how to transform your data using the dplyr package.

View File

@ -8,7 +8,7 @@ title: Visualize
```{r setup-visualise, include = FALSE}
knitr::opts_chunk$set(
cache = TRUE,
fig.path = "figures/"
fig.path = "figures/visualize/"
)
```