Introduction: This lecture introdues the animation package written by the R-genius Yihui Xie when he was a (undergraduate?) student in Remin University of China. Below are some precaution messages before using animation on our Stat3622 R studio server.

1 Hans Rosling Bubbles

a = saveGIF({
  ani.options(interval = 0.5, nmax = 10)
  par(mar = rep(3, 4))
}, = "RoslingBubbles.gif")

# Rosling.bubbles # code by Yihui Xie