custom_plot_theme_md: Custom theme for ggplot plots with markdown texts

View source: R/customplotthememd.R

custom_plot_theme_mdR Documentation

Custom theme for ggplot plots with markdown texts

Description

Custom theme for ggplot plots with markdown texts

Usage

custom_plot_theme_md(
  google_font = "Roboto",
  title_colour = "#272928",
  general_colour = "azure4",
  background_colour = "white",
  legend_pos = "right",
  legend_dir = "vertical",
  plot_margin = c(3, 0, 1, 0),
  title_size = 14,
  subtitle_size = 12,
  caption_size = 9,
  axis_size = 10,
  legend_size = 8
)

Arguments

google_font

font, from Google Fonts

title_colour

Colour for title and legend textx

general_colour

Colour for all other texts in plot

background_colour

Background colour

legend_pos

legend's position (default right)

legend_dir

legend's direction (defaul vertical)

plot_margin

margins c(top,right,bottom,left) - default c(3,0,1,0)

title_size

Title's size

subtitle_size

Subtitle's size

caption_size

Caption's size

axis_size

text size for axis items

legend_size

text size for legend

Value

ggplot theme object


carlosyanez/customthemes documentation built on Aug. 25, 2022, 1:56 a.m.