eq_map: Visualize earthquakes in space: 'eq_map()'

Description Usage Arguments Value Examples

Description

This function takes an argument data containing the filtered data frame with earthquakes to visualize. The function maps the epicenters (LATITUDE /LONGITUDE) and annotates each point with in pop up window containing annotation data stored in a column of the data frame. The user should be able to choose which column is used for the annotation in the pop-up with a function argument named annot_col. Each earthquake should be shown with a circle, and the radius of the circle should be proportional to the earthquake's magnitude (EQ_PRIMARY).

Usage

1
eq_map(data, annot_col = "DATE", cluster = FALSE)

Arguments

data

A data frame of the clean data

annot_col

A character string of a column name of the data for annotation

cluster

A logical flag (deafult FALSE). If TRUE, ClusterOPtion is used.

Value

Visualization of earthquakes in space annotating each point with in pop up window

Examples

1
2
3
4
5
6
7
8
## Not run: 
library(dplyr)
data(raw_df)
raw_df %>% eq_clean_data() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
eq_map(annot_col = "DATE")

## End(Not run)

atibot/eqplot documentation built on May 17, 2019, 4 p.m.