This is code and text behind the ggplot2 book. Please help us make it better by contributing!
You can build the pdf by cloning this repo and running make:
$ git clone https://github.com/hadley/ggplot2-book.git
$ cd ggplot2-book
$ make
If you use RStudio, you can press Cmd/Ctrl + Shift + B to run make.
To successfully build this book, you'll need:
Quite a few R packages:
devtools::install_github(c(
"hadley/bookdown",
"hadley/scales",
"hadley/ggplot2",
"hadley/ggplot2movies",
"hadley/directlabels",
"jrnold/ggthemes"
))
devtools::install_deps(".", dependencies = TRUE)
To link between sections, use internal links of the form #header-id
.
All header references are listed in toc.yaml
.