theme_ezbasic.Rd
Basic theme preferences for ggplot. Functionally a crib of https://github.com/hrbrmstr/hrbrthemes/blob/master/R/theme-ipsum.r with some default changes
theme_ezbasic(
base_size = 11.5,
plot_title_size = 16,
plot_title_face = "plain",
plot_title_margin = 10,
subtitle_size = 13,
subtitle_face = "plain",
subtitle_margin = 15,
strip_text_size = 12,
strip_text_face = "plain",
caption_size = 9,
caption_face = "plain",
caption_margin = 10,
axis_text_size = base_size,
axis_title_size = 9,
axis_title_face = "plain",
axis_title_just = "cc",
plot_margin = ggplot2::margin(10, 10, 10, 10),
grid_col = "#cccccc",
grid = TRUE,
axis_col = "#cccccc",
axis = FALSE,
ticks = FALSE,
legend_title = FALSE,
legend_bottom = TRUE,
legend_just = "center"
)
base font size
plot title face, size and margin
plot subtitle face and size
plot subtitle margin bottom (single numeric value)
facet label font face and size
plot caption face, size and margin
font size of axis text
axis title font face and size
axis title font justification, one of [blmcrt]
. Defauls to "cc"
plot margin (specify with ggplot2::margin()
)
grid & axis colors; both default to #cccccc
panel grid (TRUE
, FALSE
, or a combination of X
, x
, Y
,
y
)
add x or y axes? TRUE
, FALSE
, "xy
"
ticks if TRUE
add ticks
includes legend title if TRUE
, defaults to FALSE
places legend at bottom if TRUE
, places legend to
default position if FALSE
legend justification, one of right
, left
, center
.
Defaults to center
.