Description Usage Arguments Details Value Examples
This function creates an HTML formatted label that can be used
for the leaflet
map pop up information. It includes location
name, magnitude and casualties from NOAA earthquake data.
1 |
data |
A data frame containing cleaned NOAA earthquake data |
The input data.frame
needs to include columns LOCATION_NAME,
EQ_PRIMARY and TOTAL_DEATHS with the earthquake location, magintude and
total casualties respectively.
A character vector HTML formatted with earthquakes information
1 2 3 4 5 6 | ## Not run:
data %>% dplyr::filter(COUNTRY == "SPAIN") %>%
dplyr::mutate(POPUP = eq_create_label(.)) %>%
eq_map(annot_col = "POPUP")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.