Skip to content
Demonstrate animated graphics using MLHub.ai
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MLHUB.yaml
Makefile
README.md
animate_100.gif
animate_800.gif
demo.R
gganimate.tar.gz
iaaf.R
iaaf.csv
unittest.sh

README.md

Animate

Animations can add considerable insight to any data analysis and communicate quite effectively the story that the data is telling. This MLHub package illustrates animations that demonstrate the effectiveness of dynamic visual communications.

The sports animation used here is based on Victor Yu's example code posted to Twitter with the code shared also on Twitter. The data come from the International Association of Athletics Federations IAAF.

Visit the github repository for more details: https://github.com/gjwgit/animate

Usage

  • To install mlhub:

     $ pip3 install mlhub
  • To install and configure the pre-built model:

     $ ml install   animate
     $ ml configure animate

Demonstration

$ ml demo animate
=================
Animated Graphics
=================

We illustrate the use of animations to add more interest and insight
to the graphics we can produce in R. This adds to the narrative that
we are telling through the data and is a fundamental tool for the
Data Scientist to communicate that narrative.

Press Enter to continue on to a sports analytics example: 

================
Sports Analytics
================

This animation is based on code shared by Victor Yu on Twitter, 9 November 2018.
See the README on github for details. Credit to Victor for sharing this great
example. Please wait whilst we generate 100 frames for the animation.
Frame 100 (100%)
Finalizing encoding... done!

Press Enter to view the generated animation: 

Close the graphic window using Ctrl-w.
Press Enter to continue on to view a smoother animation: 

=================================
More Frames => Smoother Animation
=================================

This pre-built (large) image with more frames will generally deliver a
better experience. The animated gif will take longer to load, since it
is quite a bit larger. It was generated with 800 frames rather than the
100 above. The end result is a much smoother animation (at least on local
machines).

Press Enter to display the animation: 

Close the graphic window using Ctrl-w.
Press Enter to finish this demonstration: 

Thank you for exploring the 'animate' package.
You can’t perform that action at this time.