https://github.com/amilworks/economist_graph

We will attempt to replicate a graph from The Economist using ggplot.

https://github.com/amilworks/economist_graph

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.3%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

We will attempt to replicate a graph from The Economist using ggplot.

Basic Info
  • Host: GitHub
  • Owner: amilworks
  • Language: Jupyter Notebook
  • Default Branch: master
  • Size: 1.63 MB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • Open Issues: 2
  • Releases: 0
Created about 9 years ago · Last pushed about 9 years ago
Metadata Files
Readme

README.md

Replicating a Graph from The Economist

Data Scientists and Visualizations

If you have not already seen, head over to The Economist and check out their website. In particular, look at the graphs they created here:

http://www.economist.com/blogs/graphicdetail

The graphs they created are perhaps the paragon of data visualization. Their graphs are crisp, clean, and informative. Forget the article, the entire meat of the story is told through a graph that a five year old can read. Every data scientist faces, at some point, the question of, "what significant question do I answer through data visualization." Data scientists can clean and manipulate data like no other person can. But, I would argue, they are not true data scientists if they cannot form questions that no one knew they wanted answers to.

The Problem

The problem is I cannot teach you how to ask fascinating questions about the data you just cleaned. Actually, nobody can help you. There is no algorithm that can teach you what to extract from your data to answer a burning question. However, what you can do is become familar with a wide variety of topics such as sports, politics, technology, finance, and, most importantly, your interests. You do not have to be an expert in every topic, but learn the patterns and problems that those topics face. Only then will you begin to see the interconnectedness across all disciplines.

Project Abstract

In this project, we will tackle Data Visualization in R using the beautiful package ggplot. In particular, we will try our best to replicate this graph created by The Economist.

Economist

When I first looked at this graph, I knew plotting the data was going to be easy. I see a scatter plot layered on a line. Easy, right? Well, kind of. In this project, we will try to get as close as we can to the actual output from The Economist using the ggplot library.

Inspiration and Documentation

The Economist * How can you not be inspired by their graphs! Look at what they plotted and try to figure out a reason for why, say, a histogram was more useful and informative instead of, say, a scatterplot matrix.

http://www.economist.com/blogs/graphicdetail

Harvard Workshop on ggplot * Harvard put together a workshop that introduced students to ggplot in the most Harvard way possible--"reproduce this graph from The Economist given these tools we will discuss in the workshop." Talk about throw them to the lions and come out alive. My first ggplot was attempting a scatterplot. They give excellent information here and the challenge was this same exact graph that we will replicate. Unfortunately, they did not give a solution so most of this project was me doing trial and error and a ton of Google searches. I am sure there are better and more efficient solutions to my code, but that is your challenge.

http://tutorials.iq.harvard.edu/R/Rgraphics/Rgraphics.html

Owner

  • Name: Amil Khan
  • Login: amilworks
  • Kind: user
  • Location: UCSB
  • Company: UCSB Electrical & Computer Engineering

PhD student in Electrical & Computer Engineering @ucsb, Lead Engineer @ BisQue

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 2
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • amilworks (2)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels