Applies the e61 theme to ggplot graphs and provides arguments to adjust graph appearance. If you are looking to change the appearance of titles or labels, check the arguments in labs_e61, which are probably what you are looking for.
Usage
theme_e61(
y_top = TRUE,
adj = 0,
fix_left = 0,
legend = c("none", "bottom", "top", "left", "right"),
legend_title = FALSE,
aspect_ratio = 0.75,
panel_borders = TRUE,
background = "white",
base_size = 10,
base_family = "pt-sans",
base_line_size = points_to_mm(0.75),
base_rect_size = points_to_mm(1)
)
Arguments
- y_top
Defaults to TRUE. Puts the y-axis title at the top. If you change this argument you also need to change the argument with the same name in scale_y_continuous_e61.
- adj
Either a single numeric to adjust left and right axis titles simultaneously or a vector of 2 numerics to adjust each axis title separately. More negative values move the text closer to the graph panel.
- fix_left
Sometimes if the value of the
adj
argument is too negative, the margins on the left side of the graph start to cut off some of the text. Provide a small positive value (5?) to correct this.- legend
Character. Legend position, "none" (default) hides the legend.
- legend_title
Logical. Include legend title? Defaults to FALSE.
- aspect_ratio
Numeric. Sets the aspect ratio of the graph panel.
- panel_borders
Logical. Show panel borders? Defaults to TRUE.
- background
Character. Default is "white". For all graphs that you save, you should control the background colour using the
bg_colour
argument insave_e61
, not here.- base_size
Numeric. Chart font size. Default is 10.
- base_family
Character. Chart font family. Default for notes is PT Sans.
- base_line_size
Numeric. Default line width.
- base_rect_size
Numeric. Default rect width.
Examples
ggplot(data = mtcars, aes(x = wt, y = mpg, col = factor(cyl))) +
geom_point() +
theme_e61()