theme_article: Theme with minimalistic (and opinionated) defaults suitable...

Description Usage Arguments Examples

View source: R/theme.r

Description

Theme with minimalistic (and opinionated) defaults suitable for publication

Usage

1
theme_article(base_size = 11, base_family = "")

Arguments

base_size

base font size

base_family

base font family

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
library(ggplot2)

d = data.frame(
  x = 1:90,
  y = rnorm(90),
  red = rep(letters[1:3], 30),
  blue = c(rep(1, 30), rep(2, 30), rep(3, 30)))

p <- ggplot(d) +
  geom_point(aes(x = x, y = y)) +
  facet_grid(red ~ blue)
tag_facet(p + theme_article())
p + theme_presentation()

# example of use with cairo device
# ggsave("fig_talk.pdf", p + theme_presentation("Source Sans Pro"), 
#          width=14, height=7, device = cairo_pdf, bg='transparent')

baptiste/egg documentation built on May 30, 2021, 1:24 a.m.