Description Usage Arguments Value Examples
This is a method to map the earthquake data. It passes the data to leaflet
1 | eq_map(x, annot_col)
|
x |
Data set to display |
annot_col |
Column that contained the annotated text that pops up. |
This function returns a leaflet to display
1 2 3 4 5 6 7 | library(dplyr)
library(lubridate)
library(readr)
raw_data<-readr::read_tsv(system.file("extdata", "signif.txt", package = "RCapstone"))
eq_clean_data(raw_data) %>% eq_location_clean() %>%
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.