Description Usage Arguments Value Examples
This function plots a straightforward map using circles to determine the eartquake location. The radius of the circle is according to the magnitude (in Richter Scale) of the earthquake.
1 | eq_map(df_map = rlang::.data, annot_col)
|
df_map |
A DataFrame with DATE, LONGITUDE, LATITUDE, and EQ_PRIMARY columns. |
annot_col |
The information to be displayed inside of the popup. |
A map with earthquakes as circles.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# Assuing the my_dataset has DATE, LONGITUDE, LATITUDE, and EQ_PRIMARY columns.
my_dataset %>% eq_map(annot_col = "DATE")
# Full example.
readr::read_delim("inst/extdata/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.