Skip to content

timothytsai/ggplot2-book

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ggplot2 book

Build Status

This is code and text behind the ggplot2 book. Please help us make it better by contributing!

Build the book

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.

Installing dependencies

There are a number of dependencies required to build this book. We have a full installation recipe for Ubuntu 12.04 here. Even if you run a different operating system, please look there for R package requirements. All of the R packages are available on CRAN via install.packages except for bookdown and captioner. You can install both sets of packages with:

pkgs <- c("lubridate", "rvest", "magrittr", "gridExtra", "dplyr", "plyr",
          "tidyr", "xtable", "nlme", "effects", "broom", "hexbin", "maps",
          "maps", "Hmisc", "devtools")
reqs <- vapply(pkgs, require, character.only = TRUE, FUN.VALUE = logical(1))
# Install packages we require
if(any(!reqs)) install.packages(pkgs[!reqs])

devtools::install_github(c("adletaw/captioner", "hadley/bookdown"))

You might also need to install the inconsolata font.

Internal links

To link between sections, use internal links of the form #header-id. All header references are listed in toc.yaml.

Releases

No releases published

Packages

No packages published

Languages

  • TeX 53.6%
  • PostScript 36.0%
  • R 7.8%
  • CSS 1.4%
  • Makefile 0.8%
  • Ruby 0.3%
  • JavaScript 0.1%