Skip to content

Instantly share code, notes, and snippets.

@ramnathv
ramnathv / README.md
Last active June 19, 2017 19:28
Customizing Popup in DataMaps

This is a short demo on how to customize the popup on hover in DataMaps using rMaps (v > 0.1.1)

Let us start by creating a simple choropleth map of crime rates

library(rMaps)
crime2010 = subset(violent_crime, Year == 2010)
choro = ichoropleth(Crime ~ State, data = crime2010)