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.

Comments are closed.