themePub: A sensible theme for basic ggplot output for use in LaTeX...

View source: R/themePub.R

themePubR Documentation

A sensible theme for basic ggplot output for use in LaTeX articles

Description

A sensible theme for basic ggplot output for use in LaTeX articles

Usage

themePub(
  base_size = 12,
  base_family = "serif",
  base_line_size = base_size/22,
  base_rect_size = base_line_size,
  ...
)

Arguments

base_size

base font size, given in pts

base_family

base font family

base_line_size

base size for line elements

base_rect_size

base size for rect elements

...

further arguments passed to ggplot2::theme()

Examples

data(mtcars)
library(ggplot2)
ggplot(mtcars, aes(x = mpg, y = wt)) + 
 geom_point() + 
 themePub()

johngodlee/JLGMisc documentation built on June 29, 2024, 9:15 p.m.