NMP uses Leaflet to Map Tweets about beer

Check out a new interactive map of beer-related tweeting throughout the United States, done in collaboration with the FloatingSheep research group. NMP instructor Rich Donohue built this slick interactive user interface with the Leaflet library.

More saturated (darker) colors indicate a higher probability of tweets containing the text of the selected beer type. You can visually explore a variety of beers by selecting a new beer. By default, a given beer is normalized by the entire tweet population. You can also compare two different beers. Hexagons without a significant number of observations/tweets do not show up. That's why some beers have more coverage than others.

Utilizing the Leaflet library, the map aggregates point-level data into .35 degree hexbin polygon units to show the spatial distribution of the tweets related to specific beers. A single beer normalized by the tweet population is encoded using a 5-class sequential color scheme, while the comparison of two beers uses a 5-class divergent color scheme. The map is also projected into an Albers equal-area projection (with the help of CartoDB's cardodb.proj extension).

If you're curious about how this map was built and designed (or are interested in doing something like this yourself) check out the New Maps Plus program. These are exactly the kinds of maps students will be learning how to construct.

Visit our Website: newmapsplus.uky.edu
Like us on Facebook: facebook.com/NewMapsPlus
Follow us on Twitter: twitter.com/NewMapsPlus/
Deadline is Sept. 20 for courses starting October 4 – Apply Now

Thumbnail Image: 
In Front Previews: 
X