for (i in 1:360) { plot(1, ann = F, type = "n", axes = F) text(1, 1, "Animation", srt = i, col = rainbow(360)[i], cex = 7 * i/360) Sys.sleep(0.01)}
Sure you'll immediately know this table of contents comes from the book "The Elements of Statistical Learning" by Trevor Hastie, Robert Tibshirani, and Jerome Friedman. However, only a limited part of topics will be covered here, as I'm not an expert on machine learning and not all of the topics are appropriate for animations.