eq_map: A interactive map showing earthquakes with custom...

Description Usage Arguments Examples

Description

This function is used to plot EQ data on map with radius of circle based on the primary magnitude. Currently this is limited to the magnitude by code because that is what the assignment said to do.

Usage

1
eq_map(data, annot_col)

Arguments

data

A data.frame output from eq_clean_data or substantially similar data. This is required as the radius of points and the latitude and longitude are mapped to columns named "EQ_PRIMARY", "LATITUDE", "LONGITUDE" (respectively). These are defaults from eq_clean_data, so when not using this function you must rename data appropriately.

annot_col

Column inside data that will be used to annotate the data

Examples

1
2
3
4
5
6
7
8
## Not run: 

EQdata %>%
      mutate(maplabel=eq_create_label(.)) %>%
      eq_map(annot_col=maplabel)


## End(Not run)

JJNewkirk/NOAAEQ documentation built on May 27, 2019, 1:12 p.m.