geom_timeline: geom_timeline

Description Usage Arguments Value Examples

View source: R/hello.R

Description

This function uses GeomTimeline Prototype for plotting a timeline with the earthquakes of a given country

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
geom_timeline(
  mapping = NULL,
  data = NULL,
  stat = "identity",
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  ...
)

Arguments

mapping

Mapping

data

Data

stat

Stat

position

Position

na.rm

na.rm

show.legend

Show legend

inherit.aes

Inherit aes

...

other arguments

Value

A timeline with all earthquakes between a set of dates for a set of countries.

Examples

1
2
3
4
5
6
7
## Not run: 
eq_location_clean(eq_clean_data(raw_data)) %>%
dplyr::filter(datetime >= "1960-01-01" & datetime <="2011-01-01" & COUNTRY == c("CHILE","USA"))%>%
ggplot() +
geom_timeline(aes(x = datetime, size = EQ_MAG_ML, colour = DEATHS, fill = DEATHS))

## End(Not run)

marioles/rcapstone documentation built on Sept. 16, 2020, 8:23 a.m.