eq_map: Map the earthquake epicenters with pup-up labels

Description Usage Arguments Examples

Description

This function takes an argument 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 is used for the annotation in the pop-up with a function argument named annot_col.

Usage

1
eq_map(df, annot_col = "DATE")

Arguments

df

The cleaned data set by applying eq_clean_data() function to the raw data

annot_col

The column user wish to use for annotation, default value is "DATE"

Examples

1
2
3
4
 ## Not run: eq_clean_data(eq_download_data()) %>%
                    dplyr::filter(COUNTRY == "Mexico:" & lubridate::year(DATE) >= 2000) %>%
                    eq_map(annot_col = "DATE")
## End(Not run)

perfectslumber/NOAAsignif documentation built on May 23, 2019, 5:04 a.m.