Sorry for the somewhat nondescript subject line, but I have two questions: 1. What is a really good book on R for a nonprogrammer? 2. How do I open more than one R Graphics: Device 2(ACTIVE). That what is the R command that I can use to keep more than one plot open. I am running a script from a book on Chemometrics that results in more than one graph during the execution, but it seems that R deletes each graph when the script calls for the next plot. Thanks in advance Stephen P. Molnar, Ph.D. Life is a fuzzy set Foundation for Chemistry Stochastic and multivariate http://www.FoundationForChemistry.com [[alternative HTML version deleted]]
On 20/04/2011 9:23 AM, Stephen P Molnar wrote:> Sorry for the somewhat nondescript subject line, but I have two questions: > > > > 1. What is a really good book on R for a nonprogrammer?Any book that teaches you the basics of programming would be good, it doesn't need to be about R. If you want to use R and remain as a nonprogrammer, you will not have any easy time.> 2. How do I open more than one R Graphics: Device 2(ACTIVE). That > what is the R command that I can use to keep more than one plot open. I am > running a script from a book on Chemometrics that results in more than one > graph during the execution, but it seems that R deletes each graph when the > script calls for the next plot. >dev.new() will open a new plot window, and subsequent plotting commands will be drawn there. dev.set() lets you switch back to drawing on the original one. Duncan Murdoch> > > Thanks in advance > > > > Stephen P. Molnar, Ph.D. Life is a > fuzzy set > > Foundation for Chemistry Stochastic > and multivariate > > http://www.FoundationForChemistry.com > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.
On Apr 20, 2011, at 9:23 AM, Stephen P Molnar wrote:> Sorry for the somewhat nondescript subject line, but I have two > questions: > > > > 1. What is a really good book on R for a nonprogrammer? > > 2. How do I open more than one R Graphics: Device 2(ACTIVE). > That > what is the R command that I can use to keep more than one plot open.You can have more than one device available, but you need to address them serially. Only one device can receive input at a time. ?Devices ?dev.set> I am > running a script from a book on Chemometrics that results in more > than one > graph during the execution, but it seems that R deletes each graph > when the > script calls for the next plot.More likely you are seeing one graph displayed at a time on the screen device. On my screen device the cmd-left-arrow will bring up prior plots to a depth of 15 earlier results. -- David Winsemius, MD West Hartford, CT
> From: Stephen P Molnar <s.molnar at sbcglobal.net> > Subject: [R] Two Questions > To: "R-help" <r-help at r-project.org> > Received: Wednesday, April 20, 2011, 9:23 AM> 1.? ? ? ? What is a really good book on > R for a nonprogrammer?Have a look at the books listed on the R website. Books by Peter Dalgaard, Phil Spector, Michael Crawley & John Verzani are all possibilities. Also haved a look at the Contributed Documentation page on the site. It has some very useful material.
When running a large number of commands from a script that produces multiple plots it is often best to send the plots to the pdf device (or other system) that you can then page through after it is finished. You could also specify par(ask=TRUE) then you would be prompted before changing the plot (but other code would not execute either). -- 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 Stephen P Molnar > Sent: Wednesday, April 20, 2011 7:23 AM > To: R-help > Subject: [R] Two Questions > > Sorry for the somewhat nondescript subject line, but I have two > questions: > > > > 1. What is a really good book on R for a nonprogrammer? > > 2. How do I open more than one R Graphics: Device 2(ACTIVE). > That > what is the R command that I can use to keep more than one plot open. > I am > running a script from a book on Chemometrics that results in more than > one > graph during the execution, but it seems that R deletes each graph when > the > script calls for the next plot. > > > > Thanks in advance > > > > Stephen P. Molnar, Ph.D. Life > is a > fuzzy set > > Foundation for Chemistry > Stochastic > and multivariate > > http://www.FoundationForChemistry.com > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.