Exploring The Quick, Draw! Dataset With R and The Mona Lisa
Switch branches/tags
Nothing to show
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.
LICENSE
README.md
mona_lisa.R

README.md

Exploring The Quick, Draw! Dataset With R: The Mona Lisa

In this experiment I explore the Google Quick Draw dataset. In its Github website you can see a detailed description of the data. Briefly, it contains  around 50 million of drawings of people around the world in .ndjson format. In this experiment, I used the simplified version of drawings where:

  • strokes are simplified and resampled with a 1 pixel spacing
  • drawings are also aligned to top-left corner and scaled to have a maximum value of 255

Getting Started

Prerequisites

You will need to install the following packages (if you don't have them already):

install.packages("LaF")
install.packages("dplyr")
install.packages("rjson")
install.packages("ggplot2")

Apart from these packages, you'll need to install gganimate as well. To install it run the following commands:

install.packages("devtools")
devtools::install_github("dgrtwo/gganimate")

Instructions

  1. After forking the repo, download The Mona Lisa.ndjson dataset from here and place it on the same folder where mona_lisa.R file is.
  2. Download also the portable version of ImageMagick as explained here and point to its folder with Sys.setenv (you can see an example of that in the forst line of mona_lisa.R)

More info

A complete explanation of the experiment can be found at fronkonstin

Authors