geom_timeline: Geom timeline

Description Usage Arguments Details Examples

View source: R/geom_timeline.R

Description

Geom timeline

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

Mapping

data

Data

stat

Stat

position

Position

na.rm

NA remove

show.legend

Show legend

inherit.aes

Inherit aes

...

Other parameters

Details

This function creates timeline chart.

Examples

1
2
3
4
5
6
require(ggplot2)
raw_data <- eq_read_data()
clean_data <- eq_clean_data(raw_data)
clean_data <- dplyr::filter(clean_data, COUNTRY %in% c("HUNGARY", "CROATIA"), YEAR >= 1500)
ggplot2::ggplot(clean_data, aes(x = DATE, y = COUNTRY)) +
geom_timeline()

MarkPados/Earthquakes.capstone.project documentation built on May 22, 2019, 3:38 p.m.