DEPRECATED Quick theme for a ggplot visualisation.
Usage
gg_theme(
font = "",
font_title = NULL,
font_subtitle = NULL,
font_body = NULL,
size_title = 11,
size_subtitle = 10,
size_body = 10,
size_axis = 0.3,
size_ticks = 0.3,
size_grid = 0.2,
style_title = "bold",
style_subtitle = "plain",
style_body = "plain",
pal_title = "#000000",
pal_subtitle = "#323232",
pal_body = "#323232",
pal_axis = "#323232",
pal_ticks = "#323232",
pal_background = c("#ffffff", "#ffffff"),
pal_grid = "#D3D3D3",
y_grid = FALSE,
x_grid = FALSE,
gridlines_v = NULL,
gridlines_h = NULL,
void = FALSE
)
Arguments
- font
The font for all text to use. Defaults to "".
- font_title
The font for the title. If NULL, inherits from font argument.
- font_subtitle
The font for the subtitle. If NULL, inherits from font argument.
- font_body
The font for the subtitle. If NULL, inherits from font argument.
- 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 text 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_grid
The size of the vertical major gridlines. Defaults to 0.2.
- style_title
The style of the title font. Defaults to "bold".
- style_subtitle
The style of the subtitle font. Defaults to "plain".
- style_body
The style of all text 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 "#323232".
- pal_body
The colour palette for all text 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_background
A two colour vector. The first colour if for the panel (and legend key). The second colour is for the rest of the background.
- pal_grid
The colour palette for the vertical major gridlines. Defaults to "#D3D3D3".
- y_grid
TRUE or FALSE of whether to show hotizontal gridlines.
- x_grid
TRUE or FALSE of whether to show vertical gridlines.
- gridlines_v
DEPRECATED. Use x_grid.
- gridlines_h
DEPRECATED. Use y_grid.
- void
TRUE or FALSE of whether to drop all axis lines, ticks and x and y labels. Useful for maps. Defaults to FALSE.