Learn R Programming

ggthemes (version 3.5.0)

theme_tufte: Tufte Maximal Data, Minimal Ink Theme

Description

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 geom_rug or geom_rangeframe.

Usage

theme_tufte(base_size = 11, base_family = "serif", ticks = TRUE)

Arguments

base_size

base font size

base_family

base font family

ticks

logical Show axis ticks?

References

Tufte, Edward R. (2001) The Visual Display of Quantitative Information, Chapter 6.

Examples

Run this code
# NOT RUN {

library("ggplot2")
# 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))

# }
# NOT RUN {
## Using the Bembo serif family
library("extrafont")

(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"))

# }

Run the code above in your browser using DataLab