// //
On this project, I wanted to tackle something besides just smoking usage. Everybody knows it is bad for them and it is not a new phenomenon. So I decided to look into Lyme Disease using the Centers for Disease Control data. Their dataset was very thorough, it spanned from 2000-2015 and had each county and their respective number of cases per year. After downloading the dataset I realized I came across the issue of formatting. By golly that was fun. The format was horizontal and not in ‘long format’, which after some frustration read that when creating a choropleth it is best to arrange your data in a long format for it is easy for it to be read. After some formatting woes, I was finally able to have it in the correct readable format.
Next came the difficult part. Actually using the data to create a choropleth. On the CDC’s website, they had a pretty rudimentary way of displaying the data through the years, it was essentially just screen shots put into a slider. This did a decent job of conveying that Lyme Disease has spread very dramatically in the northwest but not elsewhere. The CDC also plotted Lyme Disease cases as a point randomly put in each county, this led to some areas disproportionally heavy with data and others very light. To fix this I decided to plot the data set in a choropleth because everybody loves colors and different shades of colors. Colors are cool (but also can be warm).
Since I could not get my map to display on GitHib, click here.
After searching I found a couple choropleths that I liked but did not have a slider to display data across multiple years. This left me to succumb to the same level as the CDC’s level of ‘scrolling screenshots’, for developing a slider would require a fair amount of javascript, which is one of my weaknesses. As I began to make each choropleth and save it I still did some light research and I came across the exact choropleth that I wanted! It had a slider! I was able to borrow the code from Doug Dowsonwhich helped tremendously.
Using that code I changed the color scheme to a range of light tan to dark brown so symbolize the advance of mud. Ticks preferable place is in mud and grassy areas so I decided to go with that color scheme to show the new territory of Lyme disease. I got rid of the code that calculated percent difference between the 2000 and 2015 and just made it simple subtraction. One other thing that did surprise me was I still used a similarly numbered scale. I found if I tried to attach the colors to the standard deviations of the data the map really did not show the influx of Lyme Disease in the northeastern part of the United States. Using just 0-30 scale was the most adventitious to display data. I found counties either had a very dense count with 150 to 450 cases. There were, of course, some outliers with over 1000 cases. For most of the counties that became had a ‘boom’ of Lyme Disease usually topped out at 30-40. Using this shortened scale I think reflected the data in a more accurate way. Overall I think it came out well but with using Github I did run into an issue where the map would be displayed in ‘Live Preview’ with app Brackets but once I uploaded my files the choropleth would not load. That is why I had to link the map, for I could not figure out a way to host it with GitHub.