Description Usage Arguments Value Examples
This function takes a filtered data frame and maps the epicenters and annotates each point with a pop up window of date
1 | eq_map(Data = rlang::.data, Text4Popup)
|
Data |
A filtered data frame |
Text4Popup |
A string indicating the column to be displayed in pop up windows or a data frame of text created by eq_create_label() |
eq_map returns a Leaflet map widget for earthquakes.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
Countries <- c('USA', 'CHINA')
XMin <- ymd('2000-01-01')
readr::read_delim(system.file("extdata", "signif.txt", package = "TheCapstoneProject"), delim = '\t') %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY %in% Countries) %>%
dplyr::filter(DATE >= XMin) %>%
eq_map(Text2Popup = "DATE")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.