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,
x_axis_dates = 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
- x_axis_dates
boolean indicating whether or not the x axis are dates. If they are dates, we will 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