Showing posts with label Animation. Show all posts
Showing posts with label Animation. Show all posts
Sunday, September 20, 2015
Dear Silvio!..
Read more »
Labels:
Animation,
Fun,
gif,
grep(),
gsub(),
jpgfader(),
saveMovie()
Animation Newby Excercise with R-Package {animation}
Try this very simple & illustrative example for creating an animation with the animation package:
Read more »
myfun <- function ( ) {
n = ani.options("nmax")
x = sample(1:n)
y = sample(1:n)
for (i in 1:n) {
plot(x[i], y[i], cex = 3, col = 3, pch = 3, , lwd = 2,
ylim = c(0, 50),
xlim = c(0, 50))
ani.pause()
}
}
ani.start()
par(mar = c(3, 3, 1, 0.5), mgp = c(1.5, 0.5, 0), tcl = -0.3)
myfun()
ani.stop()
Subscribe to:
Posts (Atom)