Learn R Programming

animation (version 2.0-0)

ani.start: Start the generation of an HTML animation page.

Description

Start the generation of an HTML animation page. This function copies JavaScript file FUN.js and CSS file ANI.css to the same directory as the HTML animation page, create a directory images and open a graphics device in this directory (the device is specified as ani.dev in ani.options). The prompt of the current R session is modified (by default ANI>).

Usage

ani.start(...)

Arguments

...
arguments passed to ani.options to set animation parameters

Value

  • None (invisible NULL).

References

http://animation.yihui.name/animation:create_html_animation_page

See Also

saveHTML (the recommended way to create HTML pages), ani.options, ani.stop

Examples

Run this code
## save the animation in HTML pages and auto-browse it
oopt = ani.options(nmax = 20, ani.width = 600, ani.height = 500, 
    interval = 0.2)
ani.start()
boot.iid()
ani.stop()
ani.options(oopt)

Run the code above in your browser using DataLab