geom_timeline_label: Print "Earthquakes Timeline Visualization with Label"

Description Usage Arguments Value Note Examples

View source: R/earthquakes.R

Description

This function reads a clean dataset of significant earthquake data provide by NOAA (National Centers for Environmental Information).

Usage

1
geom_timeline_label(data, start_date, end_date, country, max_magnitude)

Arguments

data

The data has been cleaned using eq_clean_data function

start_date

The first date to return data for viz

end_date

The last date to return data for viz

country

Provide country name like ITALY, NEW ZEALAND

max_magnitude

Max Magnitude

Value

This function returns a ggplot timeline visualization with DATE on the x-axis, earthquake count on the y-axis where size of point indicates magnitude(EQ_MAG_ML) and color signifies Number of Deaths due to earthquake

Note

Earthquakes that occurred BCE (Before Current Epoch) have been removed from the dataset because negative year values are not handled well.

Examples

1
2
3
4
## Not run: 
geom_timeline_label(data, "2000-01-01", "2018-01-01", "NEW ZEALAND", 5)

## End(Not run)

aliciatb/earthquakes documentation built on May 29, 2019, 11:02 p.m.