frameApply: Create a frame-based animation

Description Usage Arguments Value Author(s)

View source: R/timing.R

Description

A frame-based animation is one where we need to draw the entire state of the animation at regular intervals in time. By repeatedly drawing at a fast enough rate, we can create the illusion of smooth animation if desired.

This function works well in conjunction with the ‘animation’ package.

Usage

1
frameApply(x, FUN = print, fps = 1, pause = TRUE)

Arguments

x

An animation object.

FUN

The function to call

fps

The number of frames to draw per second.

pause

Logical. Determines whether to sleep in-between drawing frames.

Value

None.

Author(s)

Paul Murrell.


pmur002/animaker documentation built on May 25, 2019, 10:20 a.m.