Description Usage Arguments Value Examples
This function plots a straightforward map using circles to determine the eartquake location. The radius of the circle is according to the magnitude (in Richter Scale) of the earthquake.
1 | eq_map(filtered_data, annot_col = "DATE")
|
filtered_data |
A DataFrame with DATE, LONGITUDE, LATITUDE, and EQ_PRIMARY columns. |
annot_col |
The information to be displayed inside of the popup. |
A leaflet object representing the map of earthquake points
1 2 3 4 5 6 7 | ## Not run: readr::read_delim("./inst/extdata/dataset.txt", delim = "\t") %>%
eq_clean_data() %>%
eq_location_clean() %>%
filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
mutate(popup_text = eq_create_label(.)) %>%
eq_map(annot_col = "popup_text")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.