R: Animate a grid grob

grid.animate {gridSVG} | R Documentation

## Animate a grid grob

### Description

Creates an animated.grob object. Useful in conjunction with `grid.export`, to produce an SVG document with animated graphical elements.

### Usage

    animateGrob(grob, ...,
                duration=1,
                rep=FALSE, revert=FALSE,
                begin=0, interpolate="linear", group=FALSE)
    grid.animate(path, ..., group=FALSE, redraw = FALSE,
                 strict=FALSE, grep=FALSE, global=FALSE)

### Arguments

`grob` | A grob to add animation to.
`path` | A grob path specifying a drawn grob.
`...` | Arguments of the grob to animate.
`duration` | The duration in seconds of the animation.
`rep` | The number of times the animation should repeat. `FALSE` means once, `TRUE` means indefinitely.
`revert` | What should happen when (if) the animation ends; `TRUE` means revert to the first animated value, `FALSE` means finish on the last animated value.
`begin` | When the animation should begin (seconds).
`interpolate` | A character value describing how animation values are interpreted. One of `linear` or `discrete`.
`group` | A logical indicating whether the animation values should be applied to the overall group element in SVG or to individual SVG elements.
`redraw` | A logical value to indicate whether to redraw the grob.
`strict` | A boolean indicating whether the `path` must be matched exactly.
`grep` | Whether the `path` should be treated as a regular expression.
`global` | A boolean indicating whether the function should affect just the first match of the `path`, or whether all matches should be affected.

### Value

An animated.grob object.

### Author(s)

Paul Murrell

### See Also

`grid.export`

[Package gridSVG version 1.6-0 Index]