Define function for consistent plot theme.

This function was set up to have a standardized ggplot theme for creating consistent-styled plots. The parameters in this function lets the user control theme parameters such as; font size, font style and legend positions.

theme_Morons(
  base_size = 14,
  base_family = "Arial",
  my_legend_position = "bottom",
  my_legend_direction = "horizontal"
)

Arguments

base_size

Size of the font on the plot. Defaults to 14.

base_family

Font family to be used on the plot. Defaults to Arial. Always use cairo device when saving the resulting plot!

my_legend_position

Where to draw the legend? Defaults to the bottom of the plot.

my_legend_direction

Which direction to draw the legend? Defaults to horizontal.

Value

Nothing.

Examples

library(ggplot2)
ggplot(mpg, aes(displ, hwy, colour = class)) +
geom_point() +
theme_Morons()