Dear R experts: I've seen that it's possible to make a sort of "slideshow" with several R-plots (each slide is activated by a click on the mouse). How can I put this on a R-script??? Regards. D. [[alternative HTML version deleted]]
I know you probably want to do this in R, but you could do this in power point or the openoffice variant rather easily. Stephen On Wed, Jan 28, 2009 at 9:44 AM, diego Diego <dhabbyc at gmail.com> wrote:> Dear R experts: > I've seen that it's possible to make a sort of "slideshow" with several > R-plots (each slide is activated by a click on the mouse). How can I put > this on a R-script??? > > > Regards. > > D. > > [[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. >-- Stephen Sefick 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
If you investigate how the call: demo(graphics) ... works, you find that the first interactive event is handled by the code at the end of the demo function, Just type: demo The rest of the interactive events are handled by this single line at the beginning of the graphics.R code that creates an implicit loop: oask <- devAskNewPage(dev.interactive(orNone = TRUE)) You could have found this by looking at the Writing R Extensions documentation and then noting that demos are placed in demo subdirectories of the packages. Going to a package that you knew contained a working demo, in this cases the graphics package, you would find a graphics.R demo script. -- David Winsemius On Jan 28, 2009, at 9:44 AM, diego Diego wrote:> Dear R experts: > I've seen that it's possible to make a sort of "slideshow" with > several > R-plots (each slide is activated by a click on the mouse). How can I > put > this on a R-script??? > > > Regards. > > D. > > [[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.
Or if the computation is time-consuming, you may try the 'animation' package, which has provided an HTML/JavaScript approach to show your graphs one by one, either automatically or manually. See http://animation.yihui.name/animation:start for details. Regards, Yihui -- Yihui Xie <xieyihui at gmail.com> Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086 Mobile: +86-15810805877 Homepage: http://www.yihui.name School of Statistics, Room 1037, Mingde Main Building, Renmin University of China, Beijing, 100872, China On Wed, Jan 28, 2009 at 10:44 PM, diego Diego <dhabbyc at gmail.com> wrote:> Dear R experts: > I've seen that it's possible to make a sort of "slideshow" with several > R-plots (each slide is activated by a click on the mouse). How can I put > this on a R-script??? > > > Regards. > > D. >