Code Monkey home page Code Monkey logo

sds192-mp2's People

Contributors

beanumber avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jpettit15

sds192-mp2's Issues

Flow Chart for Blogpost

  1. We were interested in swing states -> Using the ratio of total general votes for Democrats vs Republican to find out the top 10 swing states

  2. We were wondering if all the districts in these swing states were swing districts: if the general votes for Democrats vs Republican in each district in these swing states were also tied -> 10 graphs plotting general votes distribution (the percentage of general votes each party got) in each district of the top 10 swing states

  3. We were wondering how contribution is related to elections in swing states -> we first looked at the total contribution related to candidates of the most closely tied/most democrat-advantaged/the most republican-advantaged district in each swing state (3 graphs) -> then we looked at the individual contribution advocating/opposing those aforementioned candidates (6 graphs)

ToDo

Baseline

  • for an .Rmd that compiles without errors
  • for including the code that wrangled the data
  • for using at least two of the five basic verbs (i.e., select(), mutate(), etc.)
  • for annotating your data wrangling pipeline (this can be in a few sentences in text surrounding the R code chunks, or some informative comments inside the R code chunks)
  • unnecessary messages from R are hidden from being displayed in the HTML

Average

  • for explaining in a single coherent sentence what we can learn from these data
  • for using at least one join (e.g. left_join(), inner_join(), etc.)
  • blog post text provides context or background useful in interpreting the graphic
  • for using GitHub for version control

Advanced

  • for writing a function to generalize your analysis rather than re-writing the same code multiple times
  • for using the Issues tab on GitHub to plan your project
  • WOW factor: awarded at the professors’ discretion for submissions that are exceptionally compelling

Monetary Influence in Swing States

The data being exhibited shows the voter polls by party in the various districts of the ten key swing states -or in simpler terms the total of the public's general votes for Democrats and Republicans-- as well as the campaign contributions of the different parties in said states. To show the difference between parties, Republicans were represented in red, Democrats with blue, and other parties with green. It was unclear to us whether or not all districts in a state were swing districts, and if the general polling per district between Democrats and Republicans were tied. Ten separate graphs for the ten different swing states were created to find out this very question. According to our mapped results, the closest state in terms of voter polls was New Hampshire, with its only two districts polling nearly equally, while states with more districts varied on average on which party was being voted for.
In addition to the inquiries concerning voter preference, another question that was raised during this project was how contribution was related to the swaying of an election in swing states, and how certain parties donating may have an effect of donating. We first looked at the total contribution of advocating or opposing candidates most closely affiliated with a certain party's dominant control over the district in each swing state. After this, we looked at the individual donations and campaigning for candidates of each party. What we found most interesting was the amount of money that was being funneled into campaigns in the state of New Hampshire. New Hampshire has only two districts that can result in a close call come election time, so politicians find it imperative to sway voters as much as possible. In all our graphs, the results indicated that there was always money being funneled in to campaigning in New Hampshire in every field, as opposed to some states where money was not funneled in certain areas, and that usually donations are in the millions. What we can learn from this data is that the millions of dollars donated by various sponsors of candidates can be incredibly influential in swaying an election into one's favor, especially in swing states. Wrangling and presenting the data can really showcase the magnitude of this problem and start a conversation about the state of politics in this country.

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.