Skip to content

Instantly share code, notes, and snippets.

@lauraBaakman
Created July 2, 2014 14:24
Show Gist options
  • Save lauraBaakman/67ba739e078f68505f73 to your computer and use it in GitHub Desktop.
Save lauraBaakman/67ba739e078f68505f73 to your computer and use it in GitHub Desktop.
Reset the par in an R file
#Source: http://stackoverflow.com/questions/5789982/reset-par-to-the-default-values-at-startup
resetPar <- function() {
dev.new()
op <- par(no.readonly = TRUE)
dev.off()
op
}
par(resetPar())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment