Description Usage Arguments Value Examples
This function generates HTML formatted text to be used in popups for map markers.
1 | eq_create_label(eq_clean = NULL)
|
eq_clean |
The clean earthquake data in a tbl_df object. |
This function returns a character vector containing popup text to be used in a leaflet visualization.
1 2 3 4 5 6 7 8 | ## Not run:
filename<-system.file("data","earthquakes_data.txt.zip",package="capstone")
eq_location_clean(eq_clean_data(eq_data_read(filename))) %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(datetime) >= 1980) %>%
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.