Function takes a data frame cleaned with eq_clean_data and creates a leadlet map that plots earthquakes with size based on the magnitude of the earthquake. The function also takes a column name (as a string) to use to create hoverover labels for the point.
Data frame cleaned with eq_clean_data
Column to be used for creating label
Leaflet map (technically returns NULL and draws map to plotting object)
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.