Skip to contents

A compact theme for multi-panel figures: no panel title (headings are placed by ComposeFigure()), thin grey left and bottom axis lines, short ticks, light horizontal grid lines when grid = "y", no legend background and zero outer margins. When the optional packages 'ggtext' and 'gridtext' are installed, axis titles and tick labels accept the rich text produced by TypesetLabel().

Usage

ThemeManuscript(
  style = ManuscriptStyle(),
  grid = c("y", "x", "both", "none"),
  axes = c("xy", "x", "y", "none")
)

Arguments

style

A ManuscriptStyle() object.

grid

One of "y", "x", "both" or "none".

axes

One of "xy" (left and bottom lines), "x", "y" or "none".

Value

A 'ggplot2' theme.

Examples

library(ggplot2)
ggplot(data.frame(x = 1:3, y = c(2, 4, 3)), aes(x, y)) +
  geom_point() +
  ThemeManuscript()