Hi, all, This might be a stupid question. Is there a single command in R that can revert parameters to default? It is much appreciated. Best wishes, Art Roberts University of Washington
Is there a single command that can revert all the plotting parameters to default?
4 messages · Arthur Roberts, stephen sefick, Adaikalavan Ramasamy +1 more
when you set par(...) use op <- par(...) par(...) and then when you want to go back use par(op)
On Wed, Sep 24, 2008 at 2:38 PM, Arthur Roberts <aroberts99163 at yahoo.com> wrote:
Hi, all, This might be a stupid question. Is there a single command in R that can revert parameters to default? It is much appreciated. Best wishes, Art Roberts University of Washington
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Stephen Sefick Research Scientist Southeastern Natural Sciences Academy Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis
What do you mean? If you kill the existing graph, perhaps using dev.off(), the next plot generated should use default values. Is this what you want? Some plotting functions use this at the start before modifying oldpar <- par(no.readonly=T) on.exit(par(oldpar)) Regards, Adai Regards, Adai
Arthur Roberts wrote:
Hi, all, This might be a stupid question. Is there a single command in R that can revert parameters to default? It is much appreciated. Best wishes, Art Roberts University of Washington
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
dev.off() (but stephan's advice is probably the better approach for most cases). -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111
-----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- project.org] On Behalf Of Arthur Roberts Sent: Wednesday, September 24, 2008 12:38 PM To: r-help at stat.math.ethz.ch Subject: [R] Is there a single command that can revert all the plotting parameters to default? Hi, all, This might be a stupid question. Is there a single command in R that can revert parameters to default? It is much appreciated. Best wishes, Art Roberts University of Washington
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting- guide.html and provide commented, minimal, self-contained, reproducible code.