jb_ThemeTufte: Tufte Maximal Data, Minimal Ink Theme (taken from ggthemes)

Description Usage Arguments Note References Examples

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

1
jb_ThemeTufte(base_size = 11, base_family = "serif", ticks = TRUE)

Arguments

base_size

base font size

base_family

base font family

ticks

logical Show axis ticks?

Note

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 extrafont.

References

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# with ticks and range frames
(ggplot(mtcars, aes(wt, mpg))
 + geom_point() + geom_rangeframe()
 + jb_ThemeTufte())
# with geom_rug
(ggplot(mtcars, aes(wt, mpg))
 + geom_point() + geom_rug()
 + jb_ThemeTufte(ticks=FALSE))
## Not run: 
## Using the Bembo serif family
library(extrafont)
(ggplot(mtcars, aes(wt, mpg))
 + geom_point() + geom_rangeframe()
 + jb_ThemeTufte(base_family='BemboStd'))
## Using the Gill Sans sans serif family
(ggplot(mtcars, aes(wt, mpg))
 + geom_point() + geom_rangeframe()
 + jb_ThemeTufte(base_family='GillSans'))

## End(Not run)

epijim/EpijimFunctions documentation built on May 16, 2019, 8:17 a.m.