eq_map: Interactive map of earthquakes

Description Usage Arguments Value Examples

View source: R/eq_map.R

Description

eq_map creates an interactive map (leaflet) of earthquakes.

Usage

1
eq_map(.df, annot_col)

Arguments

.df

(data.frame) earthquake data (NOAA)

annot_col

(chr) name of the column used for the annotation.

Value

(leaflet) of earthquakes and annotations.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 
    library(dplyr)
    library(lubridate)
    library(devrcap)

    library(lubridate)
        data(noaa)

    noaa %>%
        eq_clean_data() %>%
        filter(
            country %in% c("ITALY", "GREECE", "PORTUGAL"),
            year(date) >= 1900
        ) %>%
        eq_map("location_name")


    noaa %>%
        eq_clean_data %>%
        dplyr::filter(country == "MEXICO", year(date) >= 2000) %>%
        eq_map("date")

## End(Not run)

sheila-NAA/Mastering-software-development documentation built on Dec. 23, 2021, 1:22 a.m.