Description Usage Arguments Details Value Note Examples
Information about the earthquakes like locations, magnitude and the number of deaths are given in a pop-up.
1 |
data |
- file name |
The 'eq_create_label' function indicates 3 information about the earthquakes in the pop-up, when hovering over an earthquake. A line about the locations of the earthquake, a line about the magnitude of the earthquakes and a line about the number of deaths.
A pop-up with information about the location, magnitude and the number of deaths, when hovering over an earthquake.
error - An error will be given when there are no column named as "locations", "EQ_PRIMARY" and "DEATHS".
1 2 3 4 5 6 7 8 9 10 | ## Not run:
library(magrittr)
x <- readr::read_delim("data/earthquakes.tsv.gz", delim = "\t") %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "Mexico" & lubridate::year(DATE) >= 2000) %>%
dplyr::mutate(popup_text = eq_create_label(.)) %>%
eq_map(annot_col = "popup_text")
x
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.