plot_earthquakes_timeline: Plot the earthquake timeline and optionally save

Description Usage Arguments Examples

View source: R/visualization tools.R

Description

Given a subset of earthquake data (df) this will plot the data as a timeline (without label annotations) and apply formatting. The resulting image will then be saved as earthquakes_timeline.png if the parameter save_png is TRUE.

Usage

1

Arguments

df

A dataframe of the earthquake data your wish to plot

save_png

Boolean, default is FALSE, of whether to save as a png file

Examples

1
2
3
4
5
6
## Not run: 
df <- df %>%
  filter(COUNTRY %in% c("CHINA", "USA"), YEAR > 2000)
plot_earthquakes_timeline(df, save_png=TRUE)

## End(Not run)

dannyjwpark/NOAA documentation built on Dec. 31, 2020, 11:11 p.m.