theme_graphclass: ggplot theme based on theme_minimal

Description Usage Arguments Details Value

View source: R/theme_graphclass.R

Description

Applies ggplot2::theme_minimal() with some edits such that all line weights and colors and all text associated with the panels and axes are identical.

Usage

1
2
theme_graphclass(font_size = NULL, font_color = NULL,
  line_size = NULL, line_color = NULL)

Arguments

font_size

The size assigned to all text in the figure. The default is 10 pt.

font_color

The color assigned to all text in the figure. The default is black.

line_size

The size assigned to all lines in the figure. The default is 0.3.

line_color

The color assigned to all lines in the figure. The default is a light gray (#BDBDBD).

Details

Optional arguments allow specifying a universal font size, line size, and line color, facilitating an easy transformation of a figure from a print document to a presentation slide.

The formatting choices are highly personal, but in my opinion, provide a good standard not met by themes available in other packages.

Value

Modifies an existing graph.


graphdr/graphclassmate documentation built on May 27, 2021, 4:41 a.m.