View source: R/graphics-parameter-helpers.R
| saveGraphicsParameters | R Documentation |
Captures a graphics-parameter state and returns a closure that restores it. This helper centralises the common 'par()'/'on.exit()' pattern used by diagnostic plotting functions.
saveGraphicsParameters(..., noReadonly = FALSE)
... |
Graphics parameters passed to [graphics::par()] when 'noReadonly = FALSE'. |
noReadonly |
Logical; if 'TRUE', save all readonly-safe graphics parameters using 'par(no.readonly = TRUE)'. |
A function that restores the saved graphics parameters and invisibly returns them.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.