theme_steve {stevethemes} | R Documentation |
Steve's Preferred ggplot2 Themes and Assorted Stuff
Description
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.
Usage
theme_steve(style = "web", font, ...)
Arguments
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 |
Details
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.
Value
No return value. Function is used for its side effect, which is to format a plot made in the ggplot2 package.
Examples
library(ggplot2)
# Experiment with options, those this depends on fonts you have installed.
example_plot() + theme_steve(style='generic')