Learn R Programming

mark (version 0.8.1)

with_par: Temporary plotting

Description

Reset par() after running

Usage

with_par(..., ops = NULL)

Value

Invisibly, the result of ...

Arguments

...

Code to be evaluated

ops

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

Examples

Run this code
with_par(
  plot(lm(Sepal.Length ~ Sepal.Width, data = iris)),
  plot(lm(Petal.Length ~ Petal.Width, data = iris)),
  ops = list(mfrow = c(2, 4))
)

Run the code above in your browser using DataLab