Description Usage Arguments Value Examples
This function generates a HTML formatted tag to be used in popups.
1 |
data |
Clean earthquake data. |
A character vector containing popup text to be used in a leaflet visualization.
1 2 3 4 5 6 7 8 | ## Not run:
file<-system.file("extdata","earthquakes_data.txt.zip",package="Capstone")
eq_location_clean(eq_clean_data(eq_read_data(file))) %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 1980) %>%
dplyr::mutate(popup_text = eq_create_label(.)) %>%
eq_map(name_col = "popup_text")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.