theme_xf: Theme for ggplot

View source: R/theme_xf.R

theme_xfR Documentation

Theme for ggplot

Description

Theme for ggplot

Usage

theme_xf(
  base_family = "Open Sans",
  base_size = 11.5,
  plot_title_family = base_family,
  plot_title_size = 16,
  plot_title_face = "plain",
  plot_title_margin = 4,
  subtitle_family = "Open Sans",
  subtitle_size = 12,
  subtitle_face = "plain",
  subtitle_margin = 15,
  strip_text_family = base_family,
  strip_text_size = 12,
  strip_text_face = "plain",
  caption_family = "Open Sans",
  caption_size = 9,
  caption_face = "italic",
  caption_margin = 10,
  axis_title_family = base_family,
  axis_title_size = 13,
  axis_title_face = "plain",
  axis_title_just = "rt",
  plot_margin = ggplot2::margin(10, 10, 10, 10),
  panel_spacing = ggplot2::unit(0.5, "lines"),
  grid_col = "#cccccc",
  grid = TRUE,
  axis_col = "#cccccc",
  axis = FALSE,
  ticks = FALSE
)

Arguments

base_family

Font family

base_size

base size

plot_title_family

title font family

plot_title_size

title size

plot_title_face

title face

plot_title_margin

title margin

subtitle_family

subtitle family

subtitle_size

subtitle size

subtitle_face

subtitle face

subtitle_margin

subtitle margin

strip_text_family

strip text family

strip_text_size

strip text font size

strip_text_face

strip text font face

caption_family

family

caption_size

size

caption_face

face

caption_margin

margin

axis_title_family

family

axis_title_size

size

axis_title_face

face

axis_title_just

justification

plot_margin

margin

panel_spacing

spacing

grid_col

grid

grid

grid

axis_col

axis

axis

axis

ticks

ticks

Value

re-themed ggplot graph

Examples

## Not run: 
ggplot(mtcars, aes(x = mpg, y = hp)) +
geom_point() +
theme_xf

## End(Not run)

taylorgrant/GSPtrends documentation built on Sept. 14, 2024, 5:43 p.m.