with_par: Temporary plotting

Description Usage Arguments Value Examples

View source: R/plot.R

Description

Reset par() after running

Usage

1
with_par(..., ops = NULL)

Arguments

...

Code to be evaluated

ops

A named list to be passed to graphics::par()

Value

Invisibly, the result of ...

Examples

1
2
3
4
5
with_par(
  plot(lm(Sepal.Length ~ Sepal.Width, data = iris)),
  plot(lm(Petal.Length ~ Petal.Width, data = iris)),
  ops = list(mfrow = c(2, 4))
)

mark documentation built on July 16, 2021, 9:07 a.m.