theme_brattle: Adjust the Brattle theme in ggplot figures

Description Usage Arguments Details Author(s) Examples

View source: R/theme_brattle.R

Description

Adjust the Bratttle theme in ggplot figures.

Usage

1
2
3
theme_brattle(include.y.axis = TRUE, include.tr.axes = FALSE, 
  facet.text.bold = FALSE, include.gridlines = TRUE, 
  is.black.white = NULL, base_size = NULL, base_family = NULL)

Arguments

include.y.axis

Logical; should the y axis be drawn

include.tr.axes

Logical; should the top (t) and right (r) axes be drawn. Useful for faceted figures

facet.text.bold

Logical; should facet titles be bold

include.gridlines

Logical; should gridlines be drawn

is.black.white

Deprecated; no longer does anything

base_size

Numeric; base text size

base_family

Character; name of font family. sans is default.

Details

This is mostly useful for controling faceted figures.

Some aspects of the Brattle style are not implemented. The y-axis is shown by default. The x-axis is always at the bottom of the plot and does not necessarily correspond to the y value of 0. Labels of discrete data levels are shown in a legend, rather than in the plot area.

Author(s)

Charlie Gibbons

Examples

1
2
3
4
5
qplot(carat, price, data = diamonds) + facet_wrap(~cut) +
  theme_brattle(include.tr.axes = TRUE, facet.text.bold = TRUE) + 
  geom_point() +
  ggtitle("The relationship between carat and price") +
  xlab("Carat") + ylab("Price")

Brattle/BrattleExtras documentation built on Oct. 17, 2018, 8:58 a.m.