Description Usage Arguments Value Examples
This function reads a filtered data frame with earthquakes to visualize. The function maps the epicenters (LATITUDE/LONGITUDE) and annotates each point in a pop-up window containing annotation data stored in a column of the data frame. The user is able to choose which column is used for the annotation in the pop-up with the function argument named annot_col. Each earthquake is shown with a circle, and the radius of the circle is proportional to the earthquake's magnitude.
1 | eq_map(dataframe, annot_col)
|
dataframe |
A filtered dataframe with the earthquakes to visualize. |
annot_col |
A character string indicating the column used for the annotation in the pop-up window. |
A leaflet fully interactive map plotting the epicenters of selected earthquakes.
1 2 3 4 | ## Not run:
eq_clean_data("signif.txt") %>% dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATETIME) >= 2000) %>% eq_map(annot_col = "DATETIME")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.