Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

resetGraph

Reset par Values for a Plot


Description

Reset par() to default values to ensure that a new plot utilizes a full figure region. This function helps manage the device surface, especially after previous plotting has altered it.

Usage

resetGraph(reset.mf=TRUE)

Arguments

reset.mf

if TRUE reset the multi-frame status; otherwise preserve mfrow, mfcol, and mfg

Details

This function resets par() to its default values. If reset.mf=TRUE, it also clears the graphics device with frame(). Otherwise, the values of mfrow, mfcol, and mfg are preserved, and graphics continues as usual in the current plot. Use resetGraph only before a high level command that would routinely advance to a new frame.

Value

invisible return of the reset value par()

Author(s)

Jon T. Schnute, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC


PBSmodelling

GUI Tools Made Easy: Interact with Models and Explore Data

v2.68.8
GPL (>= 2)
Authors
Jon T. Schnute [aut], Alex Couture-Beil [aut], Rowan Haigh [aut, cre], Nicholas Boers [ctb], Anisa Egeli [ctb], A. R. Kronlund [ctb], Steve Martell [ctb], Norm Olsen [ctb]
Initial release
2019-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.