Description Usage Arguments Value Examples
This function takes a dataframe (earthquake_data) and returns a character vector of HTML column names. Note that the dataframe must have columns CLEAN_LOCATION_NAME, EQ_PRIMARY and DEATHS.
1 |
earthquake_data |
The dataframe that we'll be using to create our annotation column. |
Returns a character vector of earthquake details that we can use for map annotations.
1 2 3 4 5 6 7 8 9 | ## Not run:
map2 <-load_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")
print(map2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.