View source: R/theme_ezbasic.R
theme_ezbasic | R Documentation |
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_size |
base font size |
plot_title_face , plot_title_size , plot_title_margin |
plot title face, size and margin |
subtitle_face , subtitle_size |
plot subtitle face and size |
subtitle_margin |
plot subtitle margin bottom (single numeric value) |
strip_text_face , strip_text_size |
facet label font face and size |
caption_face , caption_size , caption_margin |
plot caption face, size and margin |
axis_text_size |
font size of axis text |
axis_title_face , axis_title_size |
axis title font face and size |
axis_title_just |
axis title font justification, one of |
plot_margin |
plot margin (specify with |
grid_col , axis_col |
grid & axis colors; both default to |
grid |
panel grid ( |
axis |
add x or y axes? |
ticks |
ticks if |
legend_title |
includes legend title if |
legend_bottom |
places legend at bottom if |
legend_just |
legend justification, one of |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.