theme_steve | R Documentation |
theme_steve()
is my default theme framework for graphs I
make with ggplot2. It starts theme_bw()
, which is available in
ggplot2, but adjusts the margins and axes a bit to my liking. The end
result is, I think, a lovely template for graphs I make in R.
theme_steve(style = "web", font, ...)
style |
various styles/adjustments to make to the base theme. Must be one of the following: "web" (default), "ms", "fira", "custom", or "generic". The "custom" style is a fancy way of saying "supply your own fonts". Where "custom" is used in this argument, something must be supplied to the font argument in this same function. |
font |
a character vector corresponding with a font that the user ideally has installed on their operating system. |
... |
optional, called for side effects |
The best use of this function may involve the fonts you have installed on your system. The user should experiment with various options to see what they like. The "generic" style will use default ggplot2 fonts.
No return value. Function is used for its side effect, which is to format a plot made in the ggplot2 package.
library(ggplot2) # Experiment with options, those this depends on fonts you have installed. example_plot() + theme_steve(style='generic')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.