theme_arc: Style ggplot2 charts in the The Arc way

Description Usage Arguments Examples

View source: R/theme_arc.R

Description

Style ggplot2 charts in the The Arc way

Usage

1
2
3
4
5
6
theme_arc(
  base_size = 12,
  base_family = "Lato",
  base_line_size = base_size/22,
  base_rect_size = 0
)

Arguments

base_size

base font size

base_family

base font family; default is "Lato". A warning will be shown if Lato not available to R.

base_line_size

base size for line elements

base_rect_size

base size for rect elements; default is 0

Examples

1
2
3
4
5
6
7
8
library(ggplot2)


p <- ggplot(mtcars, aes(x = wt, y = mpg)) +
      geom_point() +
      theme_arc()

p

MattCowgill/thearcfooty documentation built on Jan. 19, 2020, 1:57 p.m.