Fetching contributors…
Cannot retrieve contributors at this time
58 lines (54 sloc) 1.64 KB
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tufte.R
\title{Tufte Maximal Data, Minimal Ink Theme}
theme_tufte(base_size = 11, base_family = "serif", ticks = TRUE)
\item{base_size}{base font size}
\item{base_family}{base font family}
\item{ticks}{\code{logical} Show axis ticks?}
Theme based on Chapter 6 'Data-Ink Maximization and Graphical
Design' of Edward Tufte *The Visual Display of Quantitative
Information*. No border, no axis lines, no grids. This theme works
best in combination with \code{\link{geom_rug}} or
The default font family is set to 'serif' as he uses serif fonts
for labels in 'The Visual Display of Quantitative Information'.
The serif font used by Tufte in his books is a variant of Bembo,
while the sans serif font is Gill Sans. If these fonts are
installed on your system, then you can use them with the package
# with ticks and range frames
(ggplot(mtcars, aes(wt, mpg))
+ geom_point() + geom_rangeframe()
+ theme_tufte())
# with geom_rug
(ggplot(mtcars, aes(wt, mpg))
+ geom_point() + geom_rug()
+ theme_tufte(ticks=FALSE))
## Using the Bembo serif family
(ggplot(mtcars, aes(wt, mpg))
+ geom_point() + geom_rangeframe()
+ theme_tufte(base_family='BemboStd'))
## Using the Gill Sans sans serif family
(ggplot(mtcars, aes(wt, mpg))
+ geom_point() + geom_rangeframe()
+ theme_tufte(base_family='GillSans'))
Tufte, Edward R. (2001) The Visual Display of
Quantitative Information, Chapter 6.