geom_timeline: Visualize the information in the NOAA earthquakes dataset.

Description Usage Arguments Value Examples

Description

This function is a tool to visualize the information in the NOAA base file dataset. This function plots a time line of earthquakes ranging from xmin to xmaxdates with a point for each earthquake.

Usage

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

Arguments

filtered

dataframe for any country and date.

Value

This function returns layer of plot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
filename<-system.file("extdata","data.gz",package="NOAAA")
readr::read_delim(filename, delim = "\t") %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "USA" & lubridate::year(DATE) >= 2000) %>%
ggplot() +
geom_timeline(aes(x=DATE,size=EQ_PRIMARY,color=DEATHS),alpha=0.5)

readr::read_delim(filename, delim = "\t") %>%
eq_clean_data() %>%
dplyr::filter((COUNTRY=="USA" | COUNTRY=="CHINA") & lubridate::year(DATE) >= 2000) %>%
ggplot() +
geom_timeline(aes(x=DATE,y=COUNTRY,size=EQ_PRIMARY,color=DEATHS),alpha=0.5)

## End(Not run)

shubh-b/NOAAA documentation built on May 21, 2019, 2:31 a.m.