Description Usage Arguments Value Author(s) See Also Examples
View source: R/animatoR-functions-knitr.R
Performs and plots the animation of an object.
1 2 |
x |
character, expression (block) or
object of class |
life |
numerical, duration of animation. |
... |
additional arguments passed to function |
Object of class animator
.
Andrej Blejec andrej.blejec@nib.si
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.