Description Usage Arguments Value Examples
The function generate a leaflet map and add a circle markers for every earthquake in the data set provided. The size of the markers is proportional to the magnitude of the earthquake. One variable of the data frame can be passed to the function to be displayed as a popup. If the intensity is not specified (often the case for old earthquakes), the marker is displayed in grey with fix radius = 1. If any of the required variable is not present in the data frama, the function stops nd no map will be plotted.
1 |
data |
a data frame containing the data to be plotted on the map: it should contain columns with LONGITUDE, LATITUDE, EQ_PRIMARY. |
annot_col |
a character string specifying which column should be displayed
as annotation in the popups. Default = |
a leaflet map whowing the earthquake's location and magnitude
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.