Learn R Programming

autoimage (version 2.2.3)

reset.par: Reset par

Description

reset.par resets the arguments of par to the default values when first opening R (as of version 3.2.2).

Usage

reset.par()

Arguments

See Also

par

Examples

Run this code
# NOT RUN {
par("mar") #current values of mar
par(mar = c(0, 0, 0, 0)) # change values of mar
par("mar") # changed values of mar
reset.par() # reset to defaults (not necessarilly current values)
par("mar") # should be c(5.1, 4.1, 4.1, 2.1)
# }

Run the code above in your browser using DataLab