Skip to content

All the files used in the creation of the project "Campaign Trails", which analyzes Presidential candidates' campaigning strategies from 2004 to 2024.

Notifications You must be signed in to change notification settings

nikhilc52/campaign_trails_cdj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CDJ-Campaign-Trails

All the files and programs used to build the website and images used in Campaign Trails

Built with

  • HTML, CSS, JS:
    • Used to produce the webpage and interactive elements
  • R (ggplot and gganimate)
    • Used to make the animated visuals of campaign visits
  • Python (sklearn)
    • Used to produce a Logistic Regression model of win probability
  • Figma
    • Used to make hand-drawn visuals that were uploaded to the webpage
  • Excel
    • General use for organization of CSVs and quick analysis
  • Raw Graphs
    • Website used to produce reference bubble charts for campaign cities
  • Google Newspaper Archive
    • Archive used to obtain certain newspaper clippings used on webpage
  • CLOC
    • Used to obtain metadata about the project's code

Sources used

  • Plotly: Used to obtain population statistics for 1,000 U.S. cities
  • Campaign Visits Database: Resource created by Christopher J. Devine containing campaign visits from 2008 to 2020
  • p2004.org: Website manually scraped to compile campaign visits for the 2004 election
  • Vote Hub: Page used to manually scrape campaign visits for the 2024 election
  • Odyssee: Previous Cornell Data Journal project mainly used for webpage inspiration
  • FiveThirtyEight: Visual inspiration for past-election animated maps

Metadata

  • 2216 lines of hand-written code
  • 16 R files
  • 30 CSVs
  • 4688 CSV rows
  • 53 images

Contributors

Project lead:

  • Nikhil Chinchalkar

Team members:

  • Ella Sanchez
  • Natalie Miller
  • Shashank Kalyanaraman
  • Vivian Guo

Acknowledgments

  • Cornell Data Journal for the platform

About

All the files used in the creation of the project "Campaign Trails", which analyzes Presidential candidates' campaigning strategies from 2004 to 2024.

Resources

Stars

Watchers

Forks

Contributors 5