Skip to content
How do we draw a line? An R experiment based on Google Quick, Draw! dataset
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.
.gitignore
LICENSE
README.md
lines.R

README.md

How Do We Draw a Line?

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

Th goal of the experiment is to understand how do we draw lines: horizontally? toward right o left? vertically? toward up or down? We will also check if there are differences among countries.

Inspiration

Getting Started

Prerequisites

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

install.packages("data.table")
install.packages("plyr")
install.packages("dplyr")
install.packages("rjson")
install.packages("ggplot2")
install.packages("purrr")
install.packages("broom")
install.packages("ISOcodes")
install.packages("xkcd")

Instructions

  1. After cloning the repo, download line.ndjson dataset from here and place it on the a folder called data inside your project folder in R.
  2. To use xkdcfonts follow this instructions

More info

A complete explanation of the experiment can be found at fronkonstin

Authors

You can’t perform that action at this time.