Description Usage Arguments Value Examples
Define the plotting theme.
1 2 3 4 5 6 7 | theme_rgm(base.size = 16, legend.bg = NA, legend.border = NA,
legend.position = c(0, 1), key.box = 1.25, key.label = NULL,
facet.label = 1.25, axis.line = 0.5, axis.label = 1.0,
axis.title=1.25, axis.black = TRUE,
axis.x = c("normal", "simple", "hide"),
axis.y = c("normal", "simple", "hide"), hide.title = TRUE,
CairoFonts = TRUE)
|
base.size |
The base font size. |
legend.bg |
The legend background colour. |
legend.border |
The legend border colour. |
legend.position |
The legend position *and* justification. |
key.box |
The relative size of legend key boxes. |
key.label |
The relative size of legend key labels. |
facet.label |
The relative size of facet labels. |
axis.line |
The width of axis lines. |
axis.label |
The relative size of axis text. |
axis.title |
The relative size of axis titles. |
axis.black |
Draw axes, ticks and labels in black, not grey. |
axis.x |
Hide ticks ('simple') or the entire axis ('hide'). |
axis.y |
Hide ticks ('simple') or the entire axis ('hide'). |
hide.title |
Whether to display plot titles. |
CairoFonts |
Configure Cairo to use the Open Sans font family. |
The custom ggplot2 theme.
1 2 | ## Not run: theme_set(theme_rgm(axis.black = TRUE, CairoFonts = FALSE))
## Not run: p <- ggplot(...) + ... + theme_rgm(...)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.