plot.animator: Plot Method for Class 'animator'.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/animatoR-functions-knitr.R

Description

Performs and plots the animation of an object.

Usage

1
2
## S3 method for class 'animator'
plot(x, life, ...)

Arguments

x

character, expression (block) or object of class animator containing graphical timed commands.

life

numerical, duration of animation.

...

additional arguments passed to function animator.

Value

Object of class animator.

Author(s)

Andrej Blejec andrej.blejec@nib.si

See Also

as.animator, is.animator.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
x <- as.animator(
"newplot();tpoints(2,2,5,8,cex=2,pch=16)", life=2)
print(x)
if(interactive()) plot(x)
## Equivalent
x <- as.animator(expression({
newplot()
tpoints(2,2,5,8,cex=2,pch=16)
}),
life=2)
print(x)
if(interactive()) plot(x)

ablejec/animatoR documentation built on Feb. 21, 2020, 10:09 p.m.