Save the last plot using mrggsave

mrggsave_last(
  stem,
  script = getOption("mrg.script", NULL),
  ...,
  envir = parent.frame()
)

Arguments

stem

passed to mrggsave()

script

passed to mrggsave()

...

passed to mrggsave()

envir

environment to be used for string interpolation in stem and tag; passed to mrggsave()