Basic theme preferences for ggplot. Functionally a crib of https://github.com/hrbrmstr/hrbrthemes/blob/master/R/theme-ipsum.r with some default changes

theme_ezbasic(
  base_size = 11.5,
  plot_title_size = 16,
  plot_title_face = "plain",
  plot_title_margin = 10,
  subtitle_size = 13,
  subtitle_face = "plain",
  subtitle_margin = 15,
  strip_text_size = 12,
  strip_text_face = "plain",
  caption_size = 9,
  caption_face = "plain",
  caption_margin = 10,
  axis_text_size = base_size,
  axis_title_size = 9,
  axis_title_face = "plain",
  axis_title_just = "cc",
  plot_margin = ggplot2::margin(10, 10, 10, 10),
  grid_col = "#cccccc",
  grid = TRUE,
  axis_col = "#cccccc",
  axis = FALSE,
  ticks = FALSE,
  legend_title = FALSE,
  legend_bottom = TRUE,
  legend_just = "center"
)

Arguments

base_size

base font size

plot_title_face, plot_title_size, plot_title_margin

plot title face, size and margin

subtitle_face, subtitle_size

plot subtitle face and size

subtitle_margin

plot subtitle margin bottom (single numeric value)

strip_text_face, strip_text_size

facet label font face and size

caption_face, caption_size, caption_margin

plot caption face, size and margin

axis_text_size

font size of axis text

axis_title_face, axis_title_size

axis title font face and size

axis_title_just

axis title font justification, one of [blmcrt]. Defauls to "cc"

plot_margin

plot margin (specify with ggplot2::margin())

grid_col, axis_col

grid & axis colors; both default to #cccccc

grid

panel grid (TRUE, FALSE, or a combination of X, x, Y, y)

axis

add x or y axes? TRUE, FALSE, "xy"

ticks

ticks if TRUE add ticks

legend_title

includes legend title if TRUE, defaults to FALSE

legend_bottom

places legend at bottom if TRUE, places legend to default position if FALSE

legend_just

legend justification, one of right, left, center. Defaults to center.