theme_jack: A function for easily modifying themes.

Description Usage Arguments Examples

View source: R/theme_jack.R

Description

This function allows easy modification of a minimalist 'ggplot2' theme - remove the grid, change fonts, etc.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
theme_jack(
  grid = FALSE,
  legend = TRUE,
  border = TRUE,
  font = NULL,
  ticks = FALSE,
  axis.nums = TRUE,
  legend.pos = "bottom",
  legend.rows = 1,
  center.title = TRUE,
  y.axis.horiz = TRUE
)

Arguments

grid

Should the plot include gridlines? Defaults to FALSE.

legend

Should the legend be drawn? Defaults to TRUE.

border

Should a rectangular border be drawn around the plot? Defaults to TRUE.

font

A string detailing which font should be used on all plot text. Must be capitalized correctly. Defaults to NULL.

axis.nums

Should the axes show number labels? Defaults to TRUE.

legend.pos

Where should the legend be located? One of "left", "right", "bottom", "top". Defaults to "bottom".

legend.rows

How many rows shows the legend have? Mostly relevant for top/bottom-located legends. Defaults to 1.

center.title

Should the plot title and subtitle be centered? Defaults to TRUE.

y.axis.horiz

Should the y-axis be horizontal in order to make reading easier? Defaults to TRUE.

Examples

1
theme_jack(grid = TRUE, font = "Helvetica")

jr-leary7/jackknife documentation built on April 19, 2021, 2:18 a.m.