Learn R Programming

ggblanket (version 1.4.0)

gg_theme: Quick theme for a ggplot.

Description

Quick theme for a ggplot visualisation.

Usage

gg_theme(
  family = "",
  title_pal = "#000000",
  title_family = NULL,
  title_size = 11,
  title_face = "bold",
  subtitle_family = NULL,
  subtitle_pal = "#323232",
  subtitle_size = 10,
  subtitle_face = "plain",
  body_family = NULL,
  body_pal = "#323232",
  body_size = 10,
  body_face = "plain",
  caption_family = NULL,
  caption_pal = "#7F7F7F",
  caption_size = 9,
  caption_face = "plain",
  axis_size = 0.3,
  axis_pal = "#323232",
  ticks_size = 0.3,
  ticks_pal = "#323232",
  bg_plot_pal = "#F1F3F5",
  bg_panel_pal = "#FEFEFE",
  bg_legend_key_pal = "plot",
  grid_h = FALSE,
  grid_v = FALSE,
  grid_pal = "#D3D3D3",
  grid_size = 0.2,
  facet_gap_size = 1.5,
  void = FALSE
)

Value

A ggplot theme.

Arguments

family

The font family for all text to use. Defaults to "".

title_pal

The colour palette for the title family. Defaults to "#000000".

title_family

The font family for the title. If NULL, inherits from family argument.

title_size

The size of the title family. Defaults to 11.

title_face

The font style of the title family. Defaults to "bold".

subtitle_family

The font family for the subtitle. If NULL, inherits from family argument.

subtitle_pal

The colour palette for the subtitle family. Defaults to "#323232".

subtitle_size

The size of the subtitle family. Defaults to 10.

subtitle_face

The font style of the subtitle family. Defaults to "plain".

body_family

The font family for all text other than the title, subtitle and caption. If NULL, inherits from family argument.

body_pal

The colour palette for all text other than the title, subtitle or caption. Defaults to "#323232".

body_size

The size of all text other than the title, subtitle and caption. Defaults to 10.

body_face

The font style of all text other than the title, subtitle or caption. Defaults to "plain".

caption_family

The font family for the caption. If NULL, inherits from family argument.

caption_pal

The colour palette for the caption. Defaults to "#7F7F7F".

caption_size

The size of the caption. Defaults to 9.

caption_face

The font style of the caption. Defaults to "plain".

axis_size

The size of the axis. Defaults to 0.3.

axis_pal

The colour palette for the axis. Defaults to "#323232".

ticks_size

The size of the ticks. Defaults to 0.3.

ticks_pal

The colour palette for the ticks. Defaults to "#323232".

bg_plot_pal

The colour palette for the plot background colour.

bg_panel_pal

The colour palette for the panel background colour.

bg_legend_key_pal

The colour palette for the legend key. Can also use special values of "plot" and "panel".

grid_h

TRUE or FALSE of whether to show hotizontal gridlines. Defaults to FALSE.

grid_v

TRUE or FALSE of whether to show vertical gridlines. Defaults to FALSE.

grid_pal

The colour palette for the vertical major gridlines. Defaults to "#D3D3D3".

grid_size

The size of the vertical major gridlines. Defaults to 0.2.

facet_gap_size

The size of the spacing between facet panels in units of "lines". Defaults to 1.5.

void

TRUE or FALSE of whether to remove axis lines, ticks and x and y titles and labels.