Recent Posts

Chicago Murder Rate and Leaflet for R

Recently got hooked on Leaflet for R which is an amazing library that allows for interactive Javascript maps to be generated within R. Still have a bit to explore, but the way it handles layering on a map is really nice. I plan on writing a few UI extensions as well, since there is some interactivity I would love to add (sliders without server calls being the biggest).

Chicago Murder Rate by Year
Chicago Murder Rate by Year

Everyone was talking about the Chicago crime rates, so I figured I would give the dataset a go, and came up with the above animation. Each frame was a subset of the murder rates for that frame’s year. Years go from 2001 – 2016, and I will open up the code once I improve the UI.

Politics vs The_Donald Subreddit Domain Linkage

Ran this through Google’s Big Query on the two largest political subreddits on reddit.com. The two queries were

SELECT domain,count(*) as Count FROM [fh-bigquery:reddit_posts.2017_01] WHERE subreddit = "politics" GROUP BY domain ORDER BY Count DESC
SELECT domain,count(*) as Count FROM [fh-bigquery:reddit_posts.2017_01] WHERE subreddit = "The_Donald" GROUP BY domain ORDER BY Count DESC

Make your own conclusions, but the results are pretty telling for the diversity of posts and their content.

Mount Lemmon, Tucson, Arizona #1

This was taken on my trip down to Arizona this winter. My family and I drove up and watched the climate change over just a few miles. The saguaro disappeared and were replaced by long grasses, and eventually pine trees.

Minneapolis to Duluth

This was taken on a bicycle trip Sara and I took from Minneapolis to Duluth (and back) over the course of five days starting August 19th. We saw some great sites, got some great photos, and most importantly saw a giant rubber duck.

Find Minimum Distance Between List of Points

This is a neat little call I whipped up that returns the two x and y points from a list which have the shortest distance. It also returns the distance between those two points.

Pretty weird solution right? Seems to work though!

Reddit Account Ages

This is the data which resulted from scraping the top 1,000 “hot” posts from various subreddits. As you can see, the_donald posts originate heavily from new accounts. You could explain the discrepancy as “political season”, but SandersForPresident doesn’t seem to have that issue. Reddit was predominately left beforehand, but then you have to wonder why people are starting to gravitate toward reddit for their pro-trump discussions.

Seems like something is up. An explanation given by a pro-trump person was “conservatives get banned”, but they sure don’t get banned from the_donald, and it is against policy to create new accounts to access subreddits you have been banned from. Heck, when the_donald banned me they explicitly stated that. Anyhow, enjoy.