Description Usage Arguments Value Examples
View source: R/eq_create_label.R
Function to create a pop-up of text
1 |
data |
A Dataframe |
A leaflet map with pop-up text containing location name, magnitude and total deaths
1 2 3 4 5 6 7 8 9 | ## Not run:
data = system.file('extdata', 'earthquakesData.tsv', package ='masteringSoftwareDevelopmentinR') %>%
data = read_data(data) %>%
eq_clean_data() %>%
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.