theme_djpr: Style your ggplot2 plots in the DJPR style.

View source: R/theme_djpr.R

theme_djprR Documentation

Style your ggplot2 plots in the DJPR style.

Description

Style your ggplot2 plots in the DJPR style.

Usage

theme_djpr(
  base_size = 14,
  base_family = getOption("djprtheme.base_font_family", "sans"),
  chart_type = "normal",
  flipped = FALSE,
  background = "white",
  legend = "none",
  panel_borders = FALSE
)

Arguments

base_size

Size for text elements. Default is 14.

base_family

Font family for text elements. Default is "sans".

chart_type

"normal" by default. Set to "scatter" for scatter plots.

flipped

FALSE by default. Set to TRUE if using coord_flip(). If set to TRUE, the theme will show a vertical axis line, ticks & panel grid, while hiding the horizontals. Ignored for type = "scatter".

background

"white" by default.

legend

"none" by default. Set to "right", "left", "top", "bottom", or "none" as desired, or a two element numeric vector such as c(0.9, 0.1).

panel_borders

FALSE by default. Set to TRUE to enable a black border around the plotting area.


djpr-data/djprtheme documentation built on April 15, 2023, 2:47 a.m.