Coder Social home page Coder Social logo

dataanim's Introduction

dataAnim

A R package to generate animations for simple data wrangling operations.

Installation

This packages can be installed by using the devtools package. It is suggested to have the newest version of all the dependency packages and have a relatively new version of Rstudio.

devtools::install_github("chrk623/dataAnim")

This package is still under development, if there are any BUGS please report to Issues.

Note: The JavaScript code may not look very nice at the moment, they will change overtime.

Examples

Left Join

library(dataAnim)
data(datoy1)
join_anim(join_type = "left", speed = 1, x = datoy1$x, y = datoy1$y, by = "Name", show_msg = T)

leftgif

Inner Join

join_anim(join_type = "inner", speed = 1, x = datoy1$x, y = datoy1$y, by = "Name", show_msg = T)

innergif

Full Join

join_anim(join_type = "full", speed = 1, x = datoy1$x, y = datoy1$y, by = "Name", show_msg = T)

fullgif

Wide to Long (Gather)

data(datoy_wide)
gather_anim(key = "Subject", value = "Score", col = c("English", "Maths"), data = datoy_wide)

w2lgif

Long to Wide (Spread)

data(datoy_long)
spread_anim(key = "Subject", value = "Score", data = datoy_long)

l2wgif

Background

This packages was a part of my Masters Thesis at the University of Auckland. Supervised by Anna Fergusson and Chris Wild.

Abstract

In the recent update of iNZight, a joining and reshaping module was introduced. This module provides a tool for users to join and reshape data sets. Though it is not difficult to apply these operations and obtain the result with a tool like iNZight, there is a lack of tutorials or tools that explain the underlying process of these operations in an easy to understand manner. In this report, why these data operations are useful and important will be discussed. Software will also be developed that attempts to teach key concepts associated with joining and reshaping data sets through animations.

The full report can be found at Link.

dataanim's People

Contributors

chrk623 avatar

Stargazers

Serdar Balcı avatar

Watchers

James Cloos avatar

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.