theme_2dii: A theme to apply 2DII plotting aesthetics

Description Usage Arguments Value Examples

View source: R/theme_2dii.R

Description

A ggplot theme which can be applied to all graphs to appear according to 2DII plotting aesthetics.

Usage

1
2
3
4
5
6
theme_2dii(
  base_size = 12,
  base_family = "Helvetica",
  base_line_size = base_size/22,
  base_rect_size = base_size/22
)

Arguments

base_size

base font size, given in pts.

base_family

base font family

base_line_size

base size for line elements

base_rect_size

base size for rect elements

Value

An object of class theme, gg.

Examples

1
2
3
4
5
6
7
library(ggplot2)

class(theme_2dii())

ggplot(mtcars) +
  geom_histogram(aes(mpg), bins = 10) +
  theme_2dii()

2DegreesInvesting/r2dii.plot.static documentation built on Dec. 17, 2021, 6:37 a.m.