Skip to contents

ggplot2 grid theme.

Usage

theme_grid_barlow(...)

theme_grid(
  base_family = "",
  base_size = 10.5,
  scaling = 1.2,
  title_family = "",
  title_size = base_size * scaling^2,
  title_face = "bold",
  title_color = "#2e4053",
  title_margin = NULL,
  subtitle_family = "",
  subtitle_size = base_size * scaling,
  subtitle_face = "plain",
  subtitle_color = "#2e4053",
  subtitle_margin = NULL,
  strip_text_family = "",
  strip_text_size = base_size,
  strip_text_face = "bold",
  strip_text_color = "#2e4053",
  caption_family = "",
  caption_size = base_size/scaling,
  caption_face = "plain",
  caption_color = "#aeb6bf",
  caption_margin = margin(t = 10),
  axis_text_family = "",
  axis_text_face = "plain",
  axis_text_color = "#2e4053",
  axis_text_size = base_size/scaling,
  axis_title_family = "",
  axis_title_size = base_size/scaling,
  axis_title_face = "plain",
  axis_title_color = "#2e4053",
  axis_title_just = "rt",
  plot_margin = margin(25, 25, 25, 25),
  grid_color = "#cccccc",
  grid = TRUE,
  axis_color = "#cccccc",
  axis = TRUE,
  ticks = FALSE,
  tsc_just = 0,
  leg = "v",
  leg_just = "center",
  base_theme = theme_minimal
)

theme_grid_inter(...)

theme_grid_lato(...)

theme_grid_nunito(...)

theme_grid_plex(...)

Arguments

...

Arguments passed to `plummy::theme_grid()`

base_family, base_size

Base: font family and size

scaling

Font size scaling factor

title_family, title_face, title_color, title_size, title_margin

Plot title: font family, face, color, size and margin

subtitle_family, subtitle_face, subtitle_color, subtitle_size, subtitle_margin

Plot subtitle: font family, face, color, size and margin

strip_text_family, strip_text_face, strip_text_color, strip_text_size

Facet label: font family, face, color and size

caption_family, caption_face, caption_color, caption_size, caption_margin

Plot caption: font family, face, color, size and margin

axis_text_family, axis_text_face, axis_text_color

Axis text: font family, face and color

axis_text_size

Font size of axis text

axis_title_family, axis_title_face, axis_title_color, axis_title_size

Axis title: font family, face, color and size

axis_title_just

Axis title font justification, one of [blmcrt] denoting bottom, left, middle, center, right and top.

plot_margin

Plot margin

grid_color

Grid color

grid

Panel grid (TRUE, FALSE, or a combination of X, x, Y, y denoting major and minor gridlines)

axis_color

Axis color

axis

Add x or y axes? TRUE, FALSE, "xy". Includes axis title and axis text.

ticks

Adds ticks if TRUE

tsc_just

Horizontal justification for title, subtitle, caption.

leg

Legend position. "v" for regular vertical on the right. "h" for horizontal on top.

leg_just

Legend justification

base_theme

Base theme. Defaults to `theme_minimal()“.

Details

Specify margins using ggplot2::margin()