eq_map: Mapping the earthquakes on a geographical map

Description Usage Arguments Details Value Examples

View source: R/eq_map.R

Description

The 'eq_map' function maps the earthquakes on a geograpical map.

Usage

1
eq_map(data, annot_col)

Arguments

data

- A file name

annot_col

- The parameter that is annotated in a pop-up.

Details

The 'eq_map' function maps the earthquakes (as circles) on a geograpical map, given the longitude and latitude of the earthquake events. The magnitude of the earthquakes is shown by the radius of the circles. When hovering over an earthquake events a pop-up shows some information about the earthquake.

Value

A geographical map with earthquakes (circles) of which the size indicates the magnitude of the earthquakes.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(magrittr)
x <- readr::read_delim("data/earthquakes.tsv.gz", delim = "\t") %>%
  eq_clean_data() %>%
  dplyr::filter(COUNTRY == "Mexico",
   DATE >= "2000-01-01") %>%
  eq_map(annot_col = "DATE")
x

## End(Not run)

jennychungpy/earthquakes documentation built on July 24, 2017, 10:37 a.m.