Code Monkey home page Code Monkey logo

animate's Introduction

Visualise Data Through Animations

Animations can add considerable insight to any data analysis and can 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 data from the International Association of Athletics Federations (IAAF).

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

Quick Start Command Line Examples

$ ml demo animate

Usage

  • To install mlhub (Ubuntu)
$ pip3 install mlhub
  • To install, configure, and run the demo:
$ ml install   animate
$ ml configure animate
$ ml readme    animate
$ ml commands  animate
$ ml demo      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.

animate's People

Contributors

gjwgit avatar simonzhaoms avatar

Stargazers

 avatar

Watchers

 avatar

animate's Issues

CONFIGURE: eom cargo install failed on a newly created DLVM

$ ml configure animate 
Configuring using '/home/simon/.mlhub/animate/configure.R'...

Please ask your sys admin to install the following system dependencies:
  eom cargo 

An error was encountered:

Error: Configuration can not continue at this time.
Execution halted

Install gganimate failed

When I install gganimate.tar.gz in the repo:

$ Rscript -e "install.packages('gganimate.tar.gz', repos=NULL, lib='./R')"
Warning in untar2(tarfile, files, list, exdir, restore_times) :
  skipping pax global extended headers
Error in readRDS(pfile) : error reading from connection
* removing ‘/home/simon/.mlhub/animate/R/gganimate’
Warning message:
In install.packages("gganimate.tar.gz", repos = NULL, lib = "./R") :
  installation of package ‘gganimate.tar.gz’ had non-zero exit status

README: No readme.txt when install from GitHub directly

Need to run Makefile.

$ ml readme animate 
mlhub: The 'animate' model does not have a 'README.txt' file:
  /home/simon/.mlhub/animate/README.txt


To remove installed model(s):

  $ ml remove <model>

To locally install a model downloaded from an ML Hub repository:

  $ ml install <model>

no command 'print'

$ ml print animate 
mlhub: The command 'print' was not found for this model 'animate'.

To list all of the commands supported by the model:

  $ ml commands <model>

CONFIGURE requires root access

The configure script assumes root access to apt-get install. For the DSVM admin user this is fine but in general is not feasible to assume.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.