Quick theme for a ggplot visualisation.
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
)
A ggplot theme.
The font family for all text to use. Defaults to "".
The colour palette for the title family. Defaults to "#000000".
The font family for the title. If NULL, inherits from family argument.
The size of the title family. Defaults to 11.
The font style of the title family. Defaults to "bold".
The font family for the subtitle. If NULL, inherits from family argument.
The colour palette for the subtitle family. Defaults to "#323232".
The size of the subtitle family. Defaults to 10.
The font style of the subtitle family. Defaults to "plain".
The font family for all text other than the title, subtitle and caption. If NULL, inherits from family argument.
The colour palette for all text other than the title, subtitle or caption. Defaults to "#323232".
The size of all text other than the title, subtitle and caption. Defaults to 10.
The font style of all text other than the title, subtitle or caption. Defaults to "plain".
The font family for the caption. If NULL, inherits from family argument.
The colour palette for the caption. Defaults to "#7F7F7F".
The size of the caption. Defaults to 9.
The font style of the caption. Defaults to "plain".
The size of the axis. Defaults to 0.3.
The colour palette for the axis. Defaults to "#323232".
The size of the ticks. Defaults to 0.3.
The colour palette for the ticks. Defaults to "#323232".
The colour palette for the plot background colour.
The colour palette for the panel background colour.
The colour palette for the legend key. Can also use special values of "plot" and "panel".
TRUE or FALSE of whether to show hotizontal gridlines. Defaults to FALSE.
TRUE or FALSE of whether to show vertical gridlines. Defaults to FALSE.
The colour palette for the vertical major gridlines. Defaults to "#D3D3D3".
The size of the vertical major gridlines. Defaults to 0.2.
The size of the spacing between facet panels in units of "lines". Defaults to 1.5.
TRUE or FALSE of whether to remove axis lines, ticks and x and y titles and labels.