I was wondering if anyone out there has created a series of images (e.g. jpegs) using R, then animated them on a web page. I have looked around a bit and it seems fairly complicated. One approach that seems sensible is to use a java script that displays the list of images. I have only used html on web pages before so I don't know how to use java... Ideally the final result is easily ported to all OSes of web servers. Thanks very much for any help. Bill Simpson -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
If you generate gifs, you can create an animated gif using e.g. paintshop pro. this would possibly be the simplest way.. Mark M. Span ----- Original Message ----- From: "Bill Simpson" <wsi at gcal.ac.uk> To: <r-help at stat.math.ethz.ch> Sent: Tuesday, March 20, 2001 10:43 AM Subject: [R] animation?> I was wondering if anyone out there has created a series of images (e.g. > jpegs) using R, then animated them on a web page. I have looked around a > bit and it seems fairly complicated. One approach that seems sensible is > to use a java script that displays the list of images. I have only used > html on web pages before so I don't know how to use java... > Ideally the final result is easily ported to all OSes of web servers. > > Thanks very much for any help. > > Bill Simpson > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-> 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Bill Simpson wrote:> I was wondering if anyone out there has created a series of images(e.g.> jpegs) using R, then animated them on a web page...The easiest way to present animations on Web pages is probably animated GIF files. Convert the images to GIF format (XV, ImageMagick, GIMP) then stick 'em together with one of the many encoders (I use the ancient but reliable "whirlgif") http://sources.isc.org/apps/graphics/whirlgif-302.txt MPGs are another way to go, but not as universally supported by browsers. You can encode from JPG files (I use the equally ancient "mpeg_encode"). http://www.sco.com/skunkware/osr5/video/mpeg_encode/ Java animation is neat, but can fall heavily. The worst that can happen with animated GIFs or MPGs is that they just don't display properly. Jim -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Bill, It is quite easy to do with ImageMagick (www.imagemagick.org), which can be installed on most OSes. I tried this simple sequence and it worked beautifully. In R:> for(i in 1:5) {+ jpeg(paste("fig", i, ".jpg", sep = "")) + hist(rnorm(100)) + dev.off() + } Then from the command line (I tried it using Linux, though it should be the same on any platform): % convert -delay 50 -loop 50 fig*.jpg animated.gif This created animated.gif, a nice animation of my sequence of files. You can control the timing of the animation by playing with -delay and -loop. Regards, Matt Matthew R. Nelson, Ph.D. Director, Information Systems Esperion Therapeutics, Inc. 3621 S. State St. 695 KMS Place Ann Arbor, MI 48108 Phone: (734) 222-1839 ** Note Change ** Mobile: (734) 657-6302 Fax: (734) 332-0516 email: mnelson at esperion.com web: http://www.esperion.com> -----Original Message----- > From: Bill Simpson [mailto:wsi at gcal.ac.uk] > Sent: Tuesday, March 20, 2001 4:43 AM > > I was wondering if anyone out there has created a series of > images (e.g. > jpegs) using R, then animated them on a web page. I have > looked around a > bit and it seems fairly complicated. One approach that seems > sensible is > to use a java script that displays the list of images. I have > only used > html on web pages before so I don't know how to use java... > Ideally the final result is easily ported to all OSes of web servers. > > Thanks very much for any help. > > Bill Simpson-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hi! On Tue, Mar 20, 2001 at 09:43:21AM +0000, Bill Simpson wrote:> I was wondering if anyone out there has created a series of images (e.g. > jpegs) using R, then animated them on a web page. I have looked around a > bit and it seems fairly complicated. One approach that seems sensible is > to use a java script that displays the list of images. I have only used > html on web pages before so I don't know how to use java... > Ideally the final result is easily ported to all OSes of web servers. > > Thanks very much for any help. > > Bill Simpson > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > 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 can use the ImageMagic graphics package. It includes the tool convert, which can create animated gifs. Maybe a solution? http://www.imagemagick.org/ -- Frank Gerrit Zoellner -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thanks very much everyone for the help. I found that using ImageMagic convert to collect all the .jpegs into one animated gif worked well. Bill -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._