Package: animation 2.7.1

animation: A Gallery of Animations in Statistics and Utilities to Create Animations

Provides functions for animations in statistics, covering topics in probability theory, mathematical statistics, multivariate statistics, non-parametric statistics, sampling survey, linear models, time series, computational statistics, data mining and machine learning. These functions may be helpful in teaching statistics and data analysis. Also provided in this package are a series of functions to save animations to various formats, e.g. Flash, 'GIF', HTML pages, 'PDF' and videos. 'PDF' animations can be inserted into 'Sweave' / 'knitr' easily.

Authors:Yihui Xie [aut, cre], Christian Mueller [ctb], Lijia Yu [ctb], Weicheng Zhu [ctb]

animation_2.7.1.tar.gz
animation_2.7.1.zip(r-4.5)animation_2.7.1.zip(r-4.4)animation_2.7.1.zip(r-4.3)
animation_2.7.1.tgz(r-4.4-any)animation_2.7.1.tgz(r-4.3-any)
animation_2.7.1.tar.gz(r-4.5-noble)animation_2.7.1.tar.gz(r-4.4-noble)
animation_2.7.1.tgz(r-4.4-emscripten)animation_2.7.1.tgz(r-4.3-emscripten)
animation.pdf |animation.html
animation/json (API)
NEWS

# Install animation in R:
install.packages('animation', repos = c('https://yihui.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/yihui/animation/issues

Datasets:
  • CLELAL09 - The NBA game between CLE Cavaliers and LAL Lakers on Dec 25, 2009
  • HuSpeech - Word counts of a speech by the Chinese President Hu
  • ObamaSpeech - Word counts of a speech by the US President Obama
  • iatemp - Average yearly temperatures in central Iowa
  • pageview - Page views from Sep 21, 2007 to Dec 2, 2007 of Yihui's website
  • pollen - Synthetic dataset about the geometric features of pollen grains
  • vanke1127 - Stock prices of Vanke Co., Ltd on 2009/11/27

On CRAN:

animationstatistical-computingstatistical-graphicsstatistics

51 exports 208 stars 6.27 score 4 dependencies 28 dependents 6.3k downloads

Last updated 1 years agofrom:30cb6f3859383c251d8d91cb59822341e420d351

Exports:ani.optionsani.pauseani.recordani.replayani.startani.stopbisection.methodBM.circleboot.iidboot.lowessbrownian.motionbuffon.needleclt.aniconf.intcv.anicv.nfeaturesLDAecol.death.simflip.coing.brownian.motiongm.convertgrad.descim.convertkfcvkmeans.aniknn.anileast.squareslln.aniMC.hitormissMC.samplemeanmoving.blockmwar.aninewton.methodpdftkprice.aniqpdfquincunxquincunx2Rosling.bubblessample.clustersample.ratiosample.simplesample.stratsample.systemsaveGIFsaveHTMLsaveLatexsaveSWFsaveVideosim.qqnormvi.grid.illusionvi.lilac.chaser

Dependencies:curlmagickmagrittrRcpp

Readme and manuals

Help Manual

Help pageTopics
A Gallery of Animations in Statistics and Utilities to Create Animationsanimation-package animation
Set or query animation optionsani.options
Pause for a while and flush the current graphical deviceani.pause
Record and replay animationsani.record ani.replay
Demonstration of the Bisection Method for root-finding on an intervalbisection.method
Brownian Motion in a circleBM.circle
Demonstrate bootstrapping for iid databoot.iid
Bootstrapping with LOWESSboot.lowess
Demonstration of Brownian motion on the 2D planebrownian.motion
Simulation of Buffon's Needlebuffon.needle
The NBA game between CLE Cavaliers and LAL Lakers on Dec 25, 2009CLELAL09
Demonstration of the Central Limit Theoremclt.ani
Demonstration of the concept of confidence intervalsconf.int
Demonstration for the process of cross-validationcv.ani
Cross-validation to find the optimum number of features (variables) in LDAcv.nfeaturesLDA
A simulation of the death of two species with certain probabilitiesecol.death.sim
Probability in flipping coinsflip.coin
Brownian Motion using Google Visualization APIg.brownian.motion
Gradient Descent Algorithm for the 2D casegrad.desc
Word counts of a speech by the Chinese President HuHuSpeech
Average yearly temperatures in central Iowaiatemp
A wrapper for the `convert' utility of ImageMagick or GraphicsMagickgm.convert im.convert
Sample sizes for k-fold cross-validationkfcv
Demonstration of the k-Means clustering algorithmkmeans.ani
Demonstration of the k-Nearest Neighbour classificationknn.ani
Demonstrate the least squares methodleast.squares
Demonstration of Law of Large Numberslln.ani
Hit or Miss Monte Carlo integrationMC.hitormiss
Sample Mean Monte Carlo integrationMC.samplemean
Cycle through an R object and plot each subset of elementsmoving.block
Demonstration for ``Moving Window Auto-Regression''mwar.ani
Demonstration of the Newton-Raphson method for root-findingnewton.method
Word counts of a speech by the US President ObamaObamaSpeech
Page views from Sep 21, 2007 to Dec 2, 2007 of Yihui's websitepageview
A wrapper for the PDF toolkit Pdftkpdftk
Synthetic dataset about the geometric features of pollen grainspollen
Demonstrate stock prices in animationsprice.ani
A wrapper for the PDF toolkit qpdfqpdf
Demonstration of the Quincunx (Bean Machine/Galton Box)quincunx quincunx2
The bubbles animation in Hans Rosling's TalkRosling.bubbles
Demonstration for the cluster samplingsample.cluster
Demonstrate the ratio estimation in sampling surveysample.ratio
Demonstration for simple random sampling without replacementsample.simple
Demonstration for the stratified samplingsample.strat
Demonstration for the systematic samplingsample.system
Convert images to a single animation file (typically GIF) using ImageMagick or GraphicsMagicksaveGIF saveMovie
Insert animations into an HTML pagesaveHTML
Insert animations into a LaTeX document and compile itsaveLatex
Convert images to Flash animationssaveSWF
Convert a sequence of images to a video by FFmpegsaveVideo
Simulation of QQ plots for the Normal distributionsim.qqnorm
Stock prices of Vanke Co., Ltd on 2009/11/27vanke1127
Visual illusions: Scintillating grid illusion and Hermann grid illusionvi.grid.illusion
Visual Illusions: Lilac Chaservi.lilac.chaser