Description Usage Arguments Value Examples
This function takes a data
argument that must include LATITUDE and LONGITUDE columns, and displays
its data points in a leaflet map. The points are depicted as circles, with popup annotations being displayed
upon clicking. These annotations depend on the annot_col
argument.
1 |
data |
A Dataframe Object containing the data to plot (Must include a LATITUDE and LONGITUDE colums). |
annot_col |
Column of 'data' depicting the markers that will be used in the map (upon clicking). |
This function adds the map as well as the datapoints, positioned at their respective Lat and Long
coordinates, into the current graphics device. Furthermore, it add popup markers for each datapoint depending
on the annot_col
arguments.
1 2 3 4 5 6 7 8 9 | ## Not run:
readr::read_delim("data/signif.txt", delim = "\t") %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
eq_map(annot_col = "DATE")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.