Dimitri Liakhovitski
2010-Oct-20 15:19 UTC
[R] Initiating graphics recording in RGraphics window via a script
Hello! Sometimes I have to produce several graphs at a time, but need to be able to see them all one by one in the RGraphics window. I do it manually like this: I create some plot: plot(1:5) It opens the RGraphics window. I click on the window, go (in the menue) to History-Recording, and then run my several graphs, e.g.: for(i in 10:12){ plot(1:i) } Is there any way to avoid doing it manually initiate the graphics recording in the RGraphics window in the script itself? Thanks a lot for your help! -- Dimitri Liakhovitski Ninah Consulting www.ninah.com
jim holtman
2010-Oct-20 15:24 UTC
[R] Initiating graphics recording in RGraphics window via a script
?windows On Wed, Oct 20, 2010 at 11:19 AM, Dimitri Liakhovitski <dimitri.liakhovitski at gmail.com> wrote:> Hello! > > Sometimes I have to produce several graphs at a time, but need to be > able to see them all one by one in the RGraphics window. > I do it manually like this: > > I create some plot: > plot(1:5) > > It opens the RGraphics window. I click on the window, go (in the > menue) to History-Recording, and then run my several graphs, e.g.: > > for(i in 10:12){ > ? ? ? ?plot(1:i) > } > > > Is there any way to avoid doing it manually initiate the graphics > recording in the RGraphics window in the script itself? > > Thanks a lot for your help! > > -- > Dimitri Liakhovitski > Ninah Consulting > www.ninah.com > > ______________________________________________ > 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. >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve?
Dimitri Liakhovitski
2010-Oct-20 15:51 UTC
[R] Initiating graphics recording in RGraphics window via a script
Thanks a lot for the helpful reference, Jim. So, the solution is very simple: windows(record=TRUE) for(i in 10:12){ plot(1:i,main=paste("Plot ",i,sep="")) } Dimitri On Wed, Oct 20, 2010 at 11:24 AM, jim holtman <jholtman at gmail.com> wrote:> ?windows > > > On Wed, Oct 20, 2010 at 11:19 AM, Dimitri Liakhovitski > <dimitri.liakhovitski at gmail.com> wrote: >> Hello! >> >> Sometimes I have to produce several graphs at a time, but need to be >> able to see them all one by one in the RGraphics window. >> I do it manually like this: >> >> I create some plot: >> plot(1:5) >> >> It opens the RGraphics window. I click on the window, go (in the >> menue) to History-Recording, and then run my several graphs, e.g.: >> >> for(i in 10:12){ >> ? ? ? ?plot(1:i) >> } >> >> >> Is there any way to avoid doing it manually initiate the graphics >> recording in the RGraphics window in the script itself? >> >> Thanks a lot for your help! >> >> -- >> Dimitri Liakhovitski >> Ninah Consulting >> www.ninah.com >> >> ______________________________________________ >> 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. >> > > > > -- > Jim Holtman > Cincinnati, OH > +1 513 646 9390 > > What is the problem that you are trying to solve? >-- Dimitri Liakhovitski Ninah Consulting www.ninah.com