gg_set_size_defaults | R Documentation |
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.
gg_set_size_defaults(
lineSize = 0.5,
fontSizePts = 4 + lineSize * 8,
font = "Roboto",
size = lineSize * 2
)
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) |
nothing
library(tidyverse)
gg_set_size_defaults(lineSize = 0.25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.