geom_timeline_label: Geom timeline label

Description Usage Arguments Details Examples

View source: R/geom_timeline.R

Description

Geom timeline label

Usage

1
2
3
geom_timeline_label(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 add label to the created custom timeline chart.

Examples

1
2
3
4
5
6
7
require(ggplot2)
raw_data <- eq_read_data()
clean_data <- eq_clean_data(raw_data)
clean_data <- dplyr::filter(clean_data, COUNTRY %in% c("JAPAN"), YEAR >= 2000)
ggplot2::ggplot(clean_data, aes(x = DATE)) +
geom_timeline()+
geom_timeline_label(aes(label = LOCATION_NAME, size = EQ_PRIMARY, nmax = 2, y = 0.15))

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