theme_ms: Basic plot theme for manuscript

View source: R/ggplot-themes.R

theme_msR Documentation

Basic plot theme for manuscript

Description

Basic plot theme for manuscript

Usage

theme_ms(
  base_size = 12,
  text_size_strip = 16,
  text_size_axis_text = 12,
  text_size_axis_title = 18,
  text_size_title = 20,
  text_size_subtitle = 16,
  text_size_legend = 16,
  text_size_legend_title = 18,
  text_size_caption = 14,
  font_family = "",
  legend_position = "bottom",
  panel_spacing_lines = 2,
  margin_t = 6,
  margin_r = 6,
  margin_b = 6,
  margin_l = 6,
  ...
)

Arguments

base_size

base font size

text_size_strip

size of text that goes over facets

text_size_axis_text

size of axis tick text

text_size_axis_title

size of axis label/title text

text_size_title

size of plot title text

text_size_subtitle

size of plot subtitle text

text_size_legend

size of legend text

text_size_legend_title

size of legend title text

text_size_caption

size of plot caption text

font_family

font to use in plot text, defaults to ggplot's base font

legend_position

where the legend should go, bottom by default. accepts any argument allowed by ggplot2.

panel_spacing_lines

Amount of space in line units between faceted panels.

margin_t

Margin space above top of plot.

margin_r

Margin space to the right of plot.

margin_b

Margin space underneath the of plot.

margin_l

Margin space to the left of plot.

...

Other arguments passed to theme_minimal.

Examples

## Not run: 
library(ggplot2)

ggplot(iris, aes(Sepal.Length, Petal.Length)) +
    geom_point() +
    theme_ms()

## End(Not run)

## Not run: 
ggplot2::theme_set(zlib::theme_ms())

## End(Not run)


wzbillings/zlib documentation built on Oct. 27, 2023, 9:10 a.m.