Cross Country Roadtripping


A little over two weeks ago, my dad and I set out on a week-long adventure across the United States. Starting in DC and ending in Santa Monica, we spaced the trip out over seven days so that we would have a few free hours each day to stop and explore along the way! Check out the driving schedule we decided on below…

sdf

Trip Statistics

To distract us from our boredom along the way (looking at you, Indiana and Kansas), we tracked all of our gas fill-ups throughout the trip. Since we were pulling a U-Haul trailer, and knew there would be some significant elevation changes when going through the Appalachian and Rocky Mountains, we were curious to both have visibility into our gas usage, and some rudimentary miles-per-gallon data along the way.

Read More

Visualizing Uber Rides


Recently, I discovered that I had set up my IFTTT account to log all of my Uber rides to a Google Sheets workbook. News to me! After some investigation, I found about six months of Uber ride data, nicely categorized with time, location, and driver data for each trip. If you’re looking to do any sort of analysis, or are interested in tracking your Uber rides, I highly recommend this IFTTT applet!

Read More

Tracking the Flow of Bird Scooters Across DC


Bird Scooters

Background

Unless you’ve been living under a rock, you’ve seen the scooters flying around - taking businessmen to work, tourists to monuments, and local kids around the neighborhood. These dockless electric scooters can be unlocked from any smartphone, riden for a low fee depending on duration, and parked anywhere in the city. They are intended to be used as a last-mile transit tool, helping commuters to and from their homes, offices, and local Metro/subway stops.

Read More

Creating a Real-Time Politics Dashboard With Shiny Dashboards


Earlier this week I put together a series of graphics tracing Donald Trump’s approval rating by voter group and party affiliation, even throwing in the generic congressional ballot for good measure. While cool to have a point-in-time snapshot, I figured this could be a lot more useful if built into a live dashboard, with data updating automatically (as opposed to whenever I chose to save the charts).

To make that happen, I chose to create a Shiny Dashboard that integrates all of my existing charts and provides a nice structure for designing interactive web apps. Once I set up the scaffolding for how I wanted the page to look, it didn’t take too long to start filling in the boxes with different charts and scores.

Read More

Analyzing President Trump's Approval Rating and the 2018 Generic Ballot


This question, however simple, carries long-reaching implications for America’s future. Trump’s political and moral standing come 2020 will likely define the path of the presidential election, which seems to contend either continued darkening of American politics or a great reversal of the current political environment.

As they have done for the many presidents before him, and will do for the many after him, pollsters have taken the nation’s political temperature constantly throughout the Trump administration. Luckily for us, the Huffington Post has an API which allows us to query all of these polls in aggregate and interrogate the results for specific questions.

Read More

Creating Circumplex (Polar Bar) Charts in R with ggplot2


Example Circumplex Chart

While I was working on my last post about NFL salary cap allocation, I struggled with how best to present the information. I knew I wanted the focus to be on outliers, but was finding a standard pie chart to be dull, and bar chart to be hard to compare. Fortunately, I stumbled upon the circumplex chart and realized this was exactly what I was looking for.

I found a number of good resources to help me on my way, most notably this post by Learning R, but ultimately ended up heavily customizing the charts until they felt right. Let’s take a look at what it takes to build and customize one of these charts!

Read More

NFL Spending by Position Group


![AFC East Cap Allocations](/img/nfl_division_cap_2018/NFC East.png)

The Los Angeles Rams recently resigned Brandin Cooks to a 5 year, $80 million extension, a deal that locks up their deep threat to go alongside Robert Woods and Cooper Kupp. Then, just today, they turned around and handed Todd Gurley $60 million on a 4-year extension, a deal that sets a new benchmark for the running back position (and makes LeVeon Bell a happy, happy man).

Read More

Projecting the 2026 North American World Cup Host Cities



With the 2018 World Cup (and painful non-qualification) now fully in the mirror, American soccer fans have a lot to look forward to. The 2022 World Cup promises to be a great bounce bounce-back opportunity for the team, which figures to be led by a 23 year old Christian Pulisic. Four years later, the United States, Mexico, and Canada will jointly host a North American World Cup in 2026. At that time, Pulisic will be 27 and a whole new generation of American stars is expected to emerge, with other promising players such as Timothy Weah and Josh Sargent also entering their primes.

Read More

Home Run Derby Preview 2018 Edition


I love the Home Run Derby. Though initially disappointed by the move to timed scoring rather than the traditional “10 outs” framework, I’ve had an amazing time watching sluggers like Aaron Judge go up against the clock in today’s bracket-style tournament. With no “monster” sluggers like Judge or Stanton in tonight’s Derby, things are a bit more wide open - I think you could make a case for a number of different players tonight.

Read More