gg_pedantic | R Documentation |
This is a set of styles with a focus on making plots compact, and minimally fussy, and ensuring fonts are consistent between axes and labels. It sets default sizes for line widths and point sizes. It also switched the default png renderer in knitr to 'ragg::ragg_png' to allow for modern font support.
gg_pedantic(
lineSize = 0.25,
fontSize = 8,
font = "Roboto",
size = lineSize * 2,
...
)
lineSize |
the default line and shape size in ggplot units |
fontSize |
the base font size |
font |
the default font name. |
size |
the size of points (the default size aesthetic) |
... |
passed to 'ggplot2::theme' |
nothing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.