Capture a base plot

capture_base_plot()

Examples


if (FALSE) {
x <- rnorm(100)
y <- rnorm(100)

plot(x,y)

p <- capture_base_plot()

mrggsave(p, script = "foo.R", stem = "base_plot",dir = tempdir())
}