Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

animation (version 1.1-4)

ani.options: Set or query animation parameters.

Description

Set or query animation parameters. There are various parameters that control the behaviour of the animation, such as time interval, maximum frames, height and width, etc. This function is based on options to set an option ani which is a list containing the animation parameters.

Usage

ani.options(...)

Arguments

...
arguments in tag = value form, or a list of tagged values. The tags must come from the animation parameters described below.

Value

  • a list containing the options. When parameters are set, their former values are returned in an invisible named list. Such a list can be passed as an argument to ani.options to restore the parameter values.

Details

The supported animation parameters: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

References

http://animation.yihui.name/animation:options

See Also

options

Examples

Run this code
# store the old option to restore it later
oopt = ani.options(interval = 0.05, nmax = 100, ani.dev = "png",
ani.type = "png")
ani.start()
opar = par(mar = c(3, 3, 2, 0.5), mgp = c(2, .5, 0), tcl = -0.3,
cex.axis = 0.8, cex.lab = 0.8, cex.main = 1)
brownian.motion( pch = 21, cex = 5, col = "red", bg = "yellow",
main = "Demonstration of Brownian Motion",)
par(opar)
ani.stop()
ani.options(oopt)

Run the code above in your browser using DataLab