eq_map: Create Interactive Leaflet Map with NOAA data

Description Usage Arguments Value Examples

Description

This function create interactive leaflet map of the location of earthquakes from the NOAA dataset. The size of the circles are proportional to the magnitude of the earthquakes. Pop-up window shows when you click on a circle

Usage

1
eq_map(data, annot_col = "DATE")

Arguments

data

A data frame with NOAA Significant Earthquake Database

annot_col

variable for popup display

Value

map with Earthquakes

Examples

1
2
3
4
5
6
library(dplyr); library(lubridate)
NOAA_quakes%>%
 eq_clean_data()%>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
dplyr::mutate(popup_text = eq_create_label(.)) %>%
eq_map(annot_col = "popup_text")

jyjek/jyjekNOAA documentation built on May 7, 2019, 10:52 p.m.