ggsave_auto: Accumulate multiple versions of a plot in interactive mode

Description Usage Arguments Value

View source: R/plotsave_auto.R

Description

Wrapper around ggplot2::ggsave()

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ggsave_auto(
  folder = "ggsaveauto_img",
  n_pad = 3,
  padding = stringr::str_pad(1, n_pad, pad = "0"),
  img_prefix = "img_",
  img_ext = ".png",
  width = 20,
  height = 12,
  unit = "cm",
  plot_load = "app",
  ...
)

Arguments

folder

Passed to path variable in ggsave()

n_pad

Number of "0" paddings

padding

Unique identifier for current plot

img_prefix

Prefix of the image file name

img_ext

Extension of the iamge file name

width

Passed to ggsave()

height

Passed to ggsave()

unit

Passed to ggsave()

plot_load

Options for loading the saved plot for viewing. One of c("app", "rstudio", "none").

...

Passed to ggsave()

Value

Returns the value of the current/new graphic device. You can suppress this with invisible()


yjunechoe/junebug documentation built on July 9, 2021, 7:12 p.m.