Dear R users: I am a relatively experienced Splus user but new to R, using the version for Windows 2000. Splus allows the user to generate multiple graph pages in the graph window. For example, if you have two plot(...) commands in the script than two pages in the graph window will be created. However, when I tried this in R, the second plot will just overwrite the first plot in the graph window. Could you tell me how to let R create multiple pages in the graph window? Please note that I am not talking about creating multiple plots in the same page of the graph window... Thanks very much in advance for any help that you might be able to offer! Best regards, Lixin Zeng The information in this email and in any attachments is confidential and may be privileged. If you are not the intended recipient, please destroy this message, delete any copies held on your systems and notify the sender immediately. You should not retain, copy or use this email for any purpose, nor disclose all or any part of its content to any other person. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
zeng_li at willis.com wrote:> > Dear R users: > > I am a relatively experienced Splus user but new to R, using the version > for Windows 2000. > > Splus allows the user to generate multiple graph pages in the graph window. > For example, if you have two plot(...) commands in the script than two > pages in the graph window will be created. However, when I tried this in R, > the second plot will just overwrite the first plot in the graph window. > Could you tell me how to let R create multiple pages in the graph window? > Please note that I am not talking about creating multiple plots in the same > page of the graph window... > > Thanks very much in advance for any help that you might be able to offer!That exactly is not possible, I think. But a similar thing can be done with recordPlot() (plots can be relayed, cp. ?recordPlot). Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Mon, 11 Feb 2002 zeng_li at willis.com wrote:> Dear R users: > > I am a relatively experienced Splus user but new to R, using the version > for Windows 2000. > > Splus allows the user to generate multiple graph pages in the graph window. > For example, if you have two plot(...) commands in the script than two > pages in the graph window will be created. However, when I tried this in R, > the second plot will just overwrite the first plot in the graph window. > Could you tell me how to let R create multiple pages in the graph window? > Please note that I am not talking about creating multiple plots in the same > page of the graph window...1) Only the graphsheet device on S-PLUS *for Windows* does this. 2) R under Windows has a history mechanism to enable you to page back and forth between plots.> Thanks very much in advance for any help that you might be able to offer!3) If you want S-PLUS features, why not use S-PLUS? R is written by a team of volunteers, and you get what you pay for .... -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
You will need the par(mfrow=c(m, n)) statement., which will give you an m * n matrix to hold the plots. For example, you can create two graphs side by side by using: par(mfrow = c(1, 2)) plot(1:100) plot(1:100) Cheers, Ko-Kang Wang ---------------------------------------------------------------------------- - Ko-Kang Kevin Wang Postgraduate PGDipSci Student Department of Statistics University of Auckland Auckland New Zealand ----- Original Message ----- From: <zeng_li at willis.com> To: <r-help at stat.math.ethz.ch> Sent: Tuesday, February 12, 2002 6:20 AM Subject: [R] Multiple graph pages> Dear R users: > > I am a relatively experienced Splus user but new to R, using the version > for Windows 2000. > > Splus allows the user to generate multiple graph pages in the graphwindow.> For example, if you have two plot(...) commands in the script than two > pages in the graph window will be created. However, when I tried this inR,> the second plot will just overwrite the first plot in the graph window. > Could you tell me how to let R create multiple pages in the graph window? > Please note that I am not talking about creating multiple plots in thesame> page of the graph window... > > Thanks very much in advance for any help that you might be able to offer! > > Best regards, > Lixin Zeng > > The information in this email and in any attachments is confidential and > may be privileged. If you are not the intended recipient, please destroy > this message, delete any copies held on your systems and notify the sender > immediately. You should not retain, copy or use this email for any > purpose, nor disclose all or any part of its content to any other person. > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-> r-help mailing list -- Readhttp://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html> Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
R features (and philosophy!) are not the same as S-Plus ones (so maybe you'd better use S-Plus?). In any cases, R allows you to open several graphics windows, for instance: ## activate 1st graphics window (on Windows machines) ## windows() curve(sin(x),-2*pi,2*pi) ## activate 2nd graphics window windows() curve(cos(x),-2*pi,2*pi) Then you may switch between them as you please. Best, isaia. zeng_li at willis.com wrote:> Dear R users: > > I am a relatively experienced Splus user but new to R, using the version > for Windows 2000. > > Splus allows the user to generate multiple graph pages in the graph window. > For example, if you have two plot(...) commands in the script than two > pages in the graph window will be created. However, when I tried this in R, > the second plot will just overwrite the first plot in the graph window. > Could you tell me how to let R create multiple pages in the graph window? > Please note that I am not talking about creating multiple plots in the same > page of the graph window... > > Thanks very much in advance for any help that you might be able to offer! > > Best regards, > Lixin Zeng > > The information in this email and in any attachments is confidential and > may be privileged. If you are not the intended recipient, please destroy > this message, delete any copies held on your systems and notify the sender > immediately. You should not retain, copy or use this email for any > purpose, nor disclose all or any part of its content to any other person. > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Ennio D. Isaia ~ Dep. of Statistics & Mathematics, University of Torino ~ Piazza Arbarello, 8 - 10128 Torino (Italy) ~ Phone: +39 011 670 62 51 ~~ Fax: +39 011 670 62 39 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._