John Snow, one of the fathers of modern epidemiology, produced a famous map in 1854 showing the deaths caused by a cholera outbreak in Soho, London, and the locations of water pumps in the area. He found there was a significant clustering of the deaths around a certain pump; removing the handle of the pump stopped the outbreak. For more detail about this incident and the experiment see Wikipedia. Robin Wilson released the Cholera data in multiple formats. See his blog for more information. This app is an attempt at visualizing the data and using it to derive interesting insights from the data. LinksYou may access the application here. Click here to download the source code and data files. To run, you need R; RStudio is recommended. Install the libraries listed at the top of app.R, and click Run App. If you'd rather watch a video, here it is: The dataThis application visualizes the following:
ApplicationThis application is written in R, using the shiny dashboard framework. Graphs use ggplot2 and plotly; the map view uses leaflet and location data from OpenStreetMap and CartoDB. In addition, tidyr and jpeg libraries are used to support corresponding functions. It is designed to be viewed as a dashboard with no scrolling. The hamburger icon on the top bar will show/hide the navigation pane. Select the items on the left navigation pane to switch between various views. Bar graphs may be viewed side-by-side or stacked. Items in the legend may be clicked to show/hide the item from the graph. Double-click on a legend item to show only that item. Hover over chart elements for more information about the point, bar or pie. Special thanks to Stack Overflow for all the help with working with the gotchas in Shiny and the libraries. Observations
|