Skip to contents

Set the default sizes of lines, points and fonts in ggplot geoms, and text labels in ggplot axes to get a single consistent look and feel.

Usage

gg_set_size_defaults(
  lineSize = 0.5,
  fontSizePts = 4 + lineSize * 8,
  font = "Roboto",
  size = lineSize * 2
)

Arguments

lineSize

the width of lines

fontSizePts

the size of labels and other on plot text in pts.

font

the font family name

size

the size of points (the default size aesthetic)

Value

nothing

Examples

library(tidyverse)
gg_set_size_defaults(lineSize = 0.25)