eq_map: Visualize earthquakes data on leaflet Map.

Description Usage Arguments Value Examples

View source: R/eq_plot_map.r

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.

Usage

1
eq_map(data, annot_col)

Arguments

data

Filtered dataframe of NOAA earthquakes dataset

annot_col

Column name from dataset used for the annotation in the pop-up

Value

leaflet MAP shown with a circle markers, and the radius of the circle marker is proportional to the earthquake's magnitude.

Examples

1
2
3
4
5
6
7
8
## Not run: 
 eq_map(eq_clean_data, annot_col = "DATE")

 eq_data %>%
       dplyr::filter(COUNTRY %in% COUNTRIES & lubridate::year(DATE) >= 2000) %>%
       eq_map(annot_col = "DATE")

## End(Not run)

smallikarjun/MyEqVizPkg documentation built on May 30, 2019, 12:03 a.m.