plot_eq_timeline: Plot noaa timeline

Description Usage Arguments See Also Examples

View source: R/plot_eq_timeline.R

Description

Wrapper for geom_timeline and link{geom_timeline_label}. Data is grouped by COUNTRY.

Usage

1
plot_eq_timeline(data, label = LOCATION_NAME)

Arguments

data

noaa dataset prepared by eq_clean_data.

label

(tidy eval syntax) Column used for labeling.

See Also

geom_timeline, geom_timeline_label

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
noaa_data <- system.file("extdata", "noaa_earthquakes.tsv", package = "noaa") %>%
  eq_read_data %>%
  eq_clean_data %>%
  filter(COUNTRY %in% c("USA", "CHINA") & YEAR > 2000)

timeline <- noaa_data %>%
  plot_eq_timeline(label = DATE)

## End(Not run)

philippB-on-git/noaa documentation built on Dec. 22, 2021, 7:49 a.m.