raggsave_auto: Accumulate multiple versions of a plot in interactive mode

Description Usage Arguments Value

View source: R/plotsave_auto.R

Description

Wrapper around ragg::ragg_png()

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
raggsave_auto(
  folder = "raggsaveauto_img",
  p = ggplot2::last_plot(),
  n_pad = 3,
  padding = stringr::str_pad(1, n_pad, pad = "0"),
  img_prefix = "img_",
  img_ext = ".png",
  width = 20,
  height = 12,
  unit = "cm",
  res = 300,
  plot_load = "app",
  ...
)

Arguments

folder

Directory for the plots to be accumulated in

p

Plot to be saved. Defaults to last plot printed

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 ragg_png()

height

Passed to ragg_png()

unit

Passed to ragg_png()

res

Passed to ragg_png()

plot_load

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

...

Passed to ragg_png()

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.