theme_rgm: Define the plotting theme.

Description Usage Arguments Value Examples

View source: R/theme_rgm.R

Description

Define the plotting theme.

Usage

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)

Arguments

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.

Value

The custom ggplot2 theme.

Examples

1
2
## Not run: theme_set(theme_rgm(axis.black = TRUE, CairoFonts = FALSE))
## Not run: p <- ggplot(...) + ... + theme_rgm(...)

robmoss/ggplot2-theme-rgm documentation built on May 27, 2019, 11:58 a.m.