geom_timeline: Create Timeline Geom for Earthquake Data

Description Usage Arguments Details Value Examples

View source: R/geom_timeline.R

Description

This function uses ggplot to visualize a timeline of earthquakes.

Usage

1
2
3
geom_timeline(mapping = NULL, data = NULL, stat = "identity",
  position = "identity", na.rm = FALSE, show.legend = NA,
  inherit.aes = TRUE, ...)

Arguments

mapping

defaults to NULL

data

defaults to NULL, unless data passed in

stat

defautls to 'identity'

position

defautls to 'identity'

na.rm

defaults to FALSE, do not remove NAs

show.legend

defaults to NA

inherit.aes

defaults to TRUE

...

takes additional arguments

Details

Create a new geom called geom_timeline that is used to plot a timline of earthquakes

Value

Returns a ggplot object

Examples

1
2
3
4
5
6
7
8
## Not run: data %>%
ggplot() +
geom_timeline(aes(x = DATE,
y = COUNTRY,
fill = TOTAL_DEATHS,
size = EQ_PRIMARY))

## End(Not run)

ctaber/NOAA documentation built on Nov. 4, 2019, 9:19 a.m.