Description Usage Arguments Value Examples
Helper function that creates a label column based on other columns' values
1 | eq_create_label(data, label_col = "label_text")
|
data |
Data frame containing the filtered data with earthquakes |
label_col |
Name of the column that will contain annotation text |
data frame
1 2 3 4 5 6 7 8 9 | ## Not run:
data(earthquakes)
eq_clean_data(earthquakes) %>%
eq_location_clean() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
eq_create_label(label_col = "popup_text") %>%
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.