Get standardized plot theme to add to figures
Usage
get_plot_theme(
x_axis_text_size = 8,
y_axis_text_size = 8,
x_axis_title_size = 12,
y_axis_title_size = 12,
legend_title_size = 10,
legend_text_size = 8,
facet_x_text_size = 8,
facet_y_text_size = 8,
plot_title_size = 10,
rotate_x_ticks = FALSE
)Arguments
- x_axis_text_size
integer indicating the size of x axis text, to be passed to theme. Default is
8- y_axis_text_size
integer indicating the size of y axis text, to be passed to theme. Default is
8- x_axis_title_size
integer indicating the size of x axis title, to be passed to theme. Default is
10- y_axis_title_size
integer indicating the size of y axis title, to be passed to theme. Default is
10- legend_title_size
integer indicating the size of the legend title Default is
10- legend_text_size
integer indicating the size of the legend items Default is
10- facet_x_text_size
integer indicating the size of facet title on the x-xaxis, to be passed to theme. Default is
8- facet_y_text_size
integer indicating the size of facet title on the x-xaxis, to be passed to theme. Default is
8- plot_title_size
integer indicating thesize of plot title, to be passed to theme. Default is
10- rotate_x_ticks
boolean indicating whether to rotate x axis tick text 45 degrees. Default is
FALSE
Value
a theme object to add to a ggplot2::ggplot() object to specify
line size and formatting