Description Usage Arguments Details Value Examples
Create Pop-Ups to be utilized by the function eq_map()
1 | eq_create_label(df_map)
|
df_map |
data frame. cleaned NOAA data |
Takes the dataset as an argument and creates an HTML label that can be used as the annotation text in the leaflet map.
Returns a string/HTML label with the right format for the columns LOCATION_NAME,EQ_PRIMARY,TOTAL_DEATHS
as an annotation text in the leaflet map.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
library(magrittr)
readr::read_delim("signif.txt", delim = "\t") %>%
eq_clean_data() %>%
eq_location_clean() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
dplyr::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.