Learn R Programming

scmSpillover (version 0.1.1)

save_all_plots: Save all plots to files

Description

Save all plots to files

Usage

save_all_plots(
  result,
  prefix = "scm",
  path = NULL,
  width = 10,
  height = 6,
  dpi = 300,
  ...
)

Value

Character vector of saved file paths, returned invisibly.

Arguments

result

Output from run_scm_spillover

prefix

File name prefix (default "scm")

path

Directory to save plots (required, no default)

width

Plot width in inches (default 10)

height

Plot height in inches (default 6)

dpi

Resolution (default 300)

...

Additional arguments passed to plotting functions

Examples

Run this code
if (FALSE) {
  data <- generate_test_data()
  result <- run_scm_spillover(data, treatment_start = 20)
  save_all_plots(result, path = tempdir())
}

Run the code above in your browser using DataLab