eq_map: Interactive map vizualization of earthquakes

Description Usage Arguments Value Examples

View source: R/map_NOAA.R

Description

From the NOAA data prostreated through eq_clean() displays an interactive map of Earthquakes locations. Each earthquake is represented by a circle with a radius representing the Richter scale Magnitude. Passing "DATE" to option annot_col enable to display the earthquake date in a popup window. Passing "popup_text" instead unable to display Earthquake location, magnitude and total number of victim if available.

Usage

1
eq_map(data,annot_col='')

Arguments

data

Processed NOAA data

annot_col

optional argument defining popup content, annot_col = "DATE" print the date of eartquke in the popup, annot_col = "popup_text" print location, mangitude and total deaths

Value

leaflet map

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
file_noaa <- system.file("extdata","signif.txt",package="NOAAsignifEarthQuakes",mustWork=TRUE)
filt_noaa <- load_NOAA_db(file_noaa)%>% eq_clean_data() %>%
   dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000)

   dplyr::mutate(popup_text = eq_create_label(.)) %>%
   eq_map(annot_col = "popup_text")


## End(Not run)

BreizhZut/NOAAsignifEarthQuakes documentation built on Nov. 10, 2019, 3:45 p.m.