Description Usage Arguments Examples
The function takes an argument eq_data
containing the filtered data frame
with earthquakes to visualize. The function maps the epicenters
(LATITUDE
/LONGITUDE
) and annotates each point with in pop up window
containing annotation data stored in a column of the data frame.
The user is able to choose which column to use for the annotation in
the pop-up with a function argument named annot_col
.
Each earthquake is shown with a circle whose radius is proportional
to the earthquake's magnitude.
1 | eq_map(eq_data, annot_col)
|
eq_data |
A data frame containing earthquake related data. |
annot_col |
The column name which should be used for annotation purpose |
1 2 3 4 5 | library(dplyr)
file_read() %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "CHINA" & 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.