eq_map: Visualization of Earth Quakes

Description Usage Arguments Value Examples

Description

eq_map creates a Leaflet map, adds a polygon according to the chosen country and adds the earthquakes as points (size according to magnitude)

Usage

1
eq_map(data_filtered, annot_col = "date")

Arguments

data_filtered

A dataframe

annot_col

Which column shall be displayed in the pop-up

Value

this function gives back a leaflet map. It includes various features.

Examples

1
2
3
4
5
6
7
require(magrittr)
data("NOAAearthquakes")

map_ex <- NOAAearthquakes %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(date) >= 2000) %>%
eq_map(annot_col = "date")
map_ex

Brunobt80/rPkgNOAADataset documentation built on May 20, 2019, 12:57 a.m.