Join us for
RADAR: AI Edition

simplevis (version 6.0.0)

gg_theme: Create a simple theme for a graph.

Description

Create a simple theme for a graph.

Usage

gg_theme(
  family = "",
  size_title = 11,
  size_subtitle = 10,
  size_body = 10,
  size_axis = 0.3,
  size_ticks = 0.3,
  size_gridlines = 0.2,
  face_title = "bold",
  face_subtitle = "plain",
  face_body = "plain",
  pal_title = "#000000",
  pal_subtitle = "#000000",
  pal_body = "#323232",
  pal_axis = "#323232",
  pal_ticks = "#323232",
  pal_gridlines = "#D3D3D3",
  gridlines = "horizontal"
)

Arguments

family

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

size_title

The size of the title font. Defaults to 11.

size_subtitle

The size of the subtitle font. Defaults to 10.

size_body

The size of all font other than the title or subtitle. Defaults to 10.

size_axis

The size of the axis. Defaults to 0.3.

size_ticks

The size of the ticks. Defaults to 0.3.

size_gridlines

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

face_title

The face of the title font. Defaults to "bold".

face_subtitle

The face of the subtitle font. Defaults to "plain".

face_body

The face of all font other than the title or subtitle. Defaults to "plain".

pal_title

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

pal_subtitle

The colour palette for the subtitle font. Defaults to "#000000".

pal_body

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

pal_axis

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

pal_ticks

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

pal_gridlines

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

gridlines

Whether gridlines are "horizontal", "vertical", "both" or "none".

Value

A ggplot theme.