Description Usage Arguments Value Examples
eq_create_label
creates a formatted HMTL label for use with
eq_map
that shows location, magnitude and total deaths, adjusting
the label for any missing values.
1 |
df |
A data frame containing location names in |
A character vector of formatted HTML strings to label popups in
eq_map
.
1 2 3 4 5 6 7 8 | ## Not run:
earthquakes %>% eq_filter_data(countries = c("Mexico"),
minimum_date = "1980-01-01",
maximum_date = "2018-12-31") %>%
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.