arc_save: Save ggplot2 plots in the right size

Description Usage Arguments

View source: R/arc_save.R

Description

Save ggplot2 plots in the right size

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
arc_save(
  filename,
  object = ggplot2::last_plot(),
  width = 169.333,
  type = "normal",
  height = NULL
)

arc_save_tall(filename, object = ggplot2::last_plot())

arc_save_very_tall(filename, object = ggplot2::last_plot())

arc_save_extremely_tall(filename, object = ggplot2::last_plot())

arc.save(
  filename,
  object = ggplot2::last_plot(),
  width = 169.333,
  type = "normal",
  height = NULL
)

arc.save.tall(filename, object = ggplot2::last_plot())

arc.save.very.tall(filename, object = ggplot2::last_plot())

arc.save.extremely.tall(filename, object = ggplot2::last_plot())

Arguments

filename

Name of the file the save, including extension.

object

ggplot2 object to save.

width

169.333

type

Chart type (ie. height). Options include:

  • "normal" The default. 103.18756mm

  • "tall" 127mm

  • "very_tall" 169.333mm

  • "extremely_tall" 206.375mm

height

NULL by default. When non-null, overrides the value set by 'type'.


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