Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (23 sloc) 689 Bytes
\title{ggplot2 Gallery}
<<setup, include=FALSE>>=
# cache chunks and do not tidy ggplot2 examples code
opts_chunk$set(tidy = FALSE, cache = TRUE)
% the first 10 geoms in ggplot2
<<write-examples, include=FALSE>>=
ex = lapply(head(apropos("^geom_"), 10), function(g) {
p =, find.package(), TRUE)
tools::Rd2ex(utils:::.getHelpFile(p), f <- tempfile())
knitr:::escape_latex(g), g),
readLines(f), "@\n\n")
\Sexpr{knit_child(text = unlist(ex), quiet = TRUE)}
Something went wrong with that request. Please try again.