geom_timeline: Function that will use the GeomTimeLine Prototype Function...

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Function that will use the GeomTimeLine Prototype Function required to Plot a Timeline with the Earthquakes of a given country

Usage

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

Arguments

mapping

aesthetic mappings

data

dataframe that contains the Earthquake's data

na.rm

removes the NA values from the data frame

position

position adjustment

stat

The Layer's statistical transformation

show.legend

layer's legend

inherit.aes

indicate the default aesthetics

...

other arguments

Value

Plot an Earthquakes timeline which contains the Earthquakes of a country o countries between two dates

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
file<-system.file("extdata","earthquakes_data.txt.zip",package="Capstone")
eq_location_clean(eq_clean_data(eq_read_data(file))) %>%
dplyr::filter(DATE >= "1986-02-01" & DATE <="2016-06-01" &
COUNTRY == c("ECUADOR","CHILE", "VENEZUELA"))%>%
ggplot() +
geom_timeline(aes(x = DATE, size = EQ_MAG_ML, colour = DEATHS, fill = DEATHS))

## End(Not run)

Fr3ddy1/Capstone documentation built on May 26, 2019, 7:43 p.m.