Skip to content
R package for visualising data transformation using animations.
Branch: master
Clone or download
Latest commit da8e4f8 Jul 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R Fix R CMD check issues Jul 10, 2019
data tidyup+readme Jul 2, 2019
inst/htmlwidgets tidyup+readme Jul 2, 2019
man Fix R CMD check issues Jul 10, 2019
.Rbuildignore Fix R CMD check issues Jul 10, 2019
.gitignore tidyup+readme Jul 2, 2019
DESCRIPTION Fix R CMD check issues Jul 10, 2019
LICENSE.md Fix R CMD check issues Jul 10, 2019
NAMESPACE Fix R CMD check issues Jul 10, 2019
README.Rmd more gif Jul 3, 2019
README.md more gif Jul 3, 2019
dataAnim.Rproj first commit Feb 20, 2019

README.md

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.

You can’t perform that action at this time.