# bootstrap for 20 random numbers following U(0, 1)
boot.iid(interval = 0.5)
# for the median of 15 points from chi-square(5)
boot.iid(x = rchisq(15, 5), statistic = median, interval = 0.5)
# save the animation in HTML pages
ani.start()
boot.iid(saveANI = TRUE, width = 600, height = 500, interval = 0.2)
ani.stop()
Run the code above in your browser using DataLab