R/vplot-chroms.R
theme_ggplot2.Rd
Personal ggplot2 theming function, adapted from roboto-condensed at https://github.com/hrbrmstr/hrbrthemes/
theme_ggplot2(
grid = TRUE,
border = TRUE,
base_family = "",
base_size = 8,
plot_title_family = base_family,
plot_title_size = 12,
plot_title_face = "plain",
plot_title_margin = 5,
subtitle_size = 11,
subtitle_face = "plain",
subtitle_margin = 5,
strip_text_family = base_family,
strip_text_size = 10,
strip_text_face = "bold",
caption_size = 9,
caption_face = "plain",
caption_margin = 3,
axis_text_size = base_size,
axis_title_family = base_family,
axis_title_size = 9,
axis_title_face = "plain",
axis_title_just = "rt",
panel_spacing = grid::unit(2, "lines"),
grid_col = "#cccccc",
plot_margin = margin(12, 12, 12, 12),
axis_col = "#cccccc",
axis = FALSE,
ticks = FALSE
)
panel grid (`TRUE`, `FALSE`, or a combination of `X`, `x`, `Y`, `y`)
border if `TRUE` add border
base font family and size
plot title family, face
plot title size and margin
plot subtitle family, face and size
plot subtitle margin bottom (single numeric value)
facet label font family, face and size
plot caption family, face, size and margin
font size of axis text
axis title font family, face and size
axis title font justificationk one of `[blmcrt]`
panel spacing (use `unit()`)
grid color
plot margin (specify with [ggplot2::margin])
axis color
add x or y axes? `TRUE`, `FALSE`, "`xy`"
ticks if `TRUE` add ticks
theme A ggplot theme