theme_couse: Set pretty defaults for ggplot2 objects

View source: R/theme_couse.R

theme_couseR Documentation

Set pretty defaults for ggplot2 objects

Description

Set pretty defaults for ggplot2 objects

Usage

theme_couse(
  base_size = 12,
  strip_text_size = 12,
  strip_text_margin = 5,
  subtitle_size = 13,
  subtitle_margin = 10,
  plot_title_size = 16,
  plot_title_margin = 10,
  plot_caption_size = 10,
  axis_x_margin = 10,
  axis_y_margin = 5,
  axis_text_size = 12,
  legend_title_size = 12,
  legend_text_size = 10,
  fill = "#E69F00",
  ...
)

Arguments

base_size

base font size

strip_text_size

strip text size

strip_text_margin

bottom margin for strip title

subtitle_size

subtitle size

subtitle_margin

bottom margin for subtitle

plot_title_size

plot title size

plot_title_margin

bottom margin for plot title

plot_caption_size

font size of plot caption

axis_x_margin

top margin for x axis titl

axis_y_margin

right margin for y axis title

axis_text_size

font size of axis text labels

legend_title_size

font size of the legend title

legend_text_size

font of the legend text

fill

default fill color for geom_bar, geom_rect, and geom_col

...

other args to theme_minimal

Value

A ggplot2 theme

Examples


## Not run: 

library(tidyverse)
library(cousepkg)

theme_set(theme_couse())

## End(Not run)



joeycouse/cousepkg documentation built on March 31, 2024, 11:40 a.m.