How to Reset the par Options Back to Default in R Programming (Example Code)
In this tutorial, I’ll illustrate how to reset par in the R programming language.
Creation of Example Data
par(mar = c(8, 5, 15, 8)) # Applying par function |
par(mar = c(8, 5, 15, 8)) # Applying par function
plot(1:5) # Create example graph |
plot(1:5) # Create example graph
Example: Reset Options Specified with par() Using dev.off() Command
dev.off() # Use dev.off() |
dev.off() # Use dev.off()
plot(1:5) # Recreating graph with default par options |
plot(1:5) # Recreating graph with default par options