Skip to contents

The plot should be generated by functions that registered by gglogger::register

Usage

save_plotcode(
  plot,
  prefix,
  setup = NULL,
  ...,
  auto_data_setup = TRUE,
  envir = parent.frame()
)

Arguments

plot

The plot object

prefix

The prefix of the file The ending . is removed from the prefix. So both /path/to/file and /path/to/file. are valid and will save the files as /path/to/file.code.zip.

setup

The code to setup the environment for the plot generation

...

The names of the variables to save from the environment

auto_data_setup

Whether to automatically save the variables from the environment

envir

The environment to save the variables from