Description Usage Arguments Value Examples
This function reads in a dataframe and annotation column and outputs a leaflet plot.
1 |
data |
A dataframe that contains the annotation column and numeric columns named LATITUDE and LONGITUDE |
annot_col |
The name of the column that holds the annotations. |
A leaflet plot with annotations.
1 2 3 4 5 | data(earthquake_raw)
earthquake_raw %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
eq_map(annot_col = "DATE")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.