Arthur Roberts
2008-Sep-24 18:38 UTC
[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
stephen sefick
2008-Sep-24 18:48 UTC
[R] Is there a single command that can revert all the plotting parameters to default?
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
Adaikalavan Ramasamy
2008-Sep-24 19:07 UTC
[R] Is there a single command that can revert all the plotting parameters to default?
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.
Greg Snow
2008-Sep-24 19:51 UTC
[R] Is there a single command that can revert all the plotting parameters to default?
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.
Possibly Parallel Threads
- Is there anyway to clip the bottom of a barplot?
- Are there any guis out there, which will allow editing of the graph?
- How do I get an inset graph (i.e. graph within a graph)?
- Are there any packages that can process images other than pixelmap (i.e. pnm)?
- "plot": Howto get parameters befor plotting anything?