GithubHelp home page GithubHelp logo

yiliu6240 / election-history Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zonination/election-history

1.0 2.0 0.0 2.43 MB

US Presidential Elections since 1789

License: GNU General Public License v3.0

R 100.00%

election-history's Introduction

US Presidential Elections since 1789

Note: This project has been, to the best of my knowledge, verified to the best of my abilities. There may, however, still be errors or inaccuracies. If you bump into an inaccuracy, simply open an issue so I can correct as soon as I can.

About

Inspired by this Reddit post.

Wanted to expand on it with the following improvements:

  • including shading for margin of victory (% of winning party - % of next highest party)
  • expanding the dataset to the earliest possible election data
  • breaking down the states into regions, since there are clear election patterns

Gallery

Election Results by Region

Election Results by State (ordered by Admission into Union)

Election Results by State (ordered alphabetically)

Sources:

Election Data

Other Data

Tools used:

  • ggplot2
  • Rstudio

election-history's People

Contributors

zonination avatar

Stargazers

 avatar

Watchers

 avatar  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.