geom_timeline_label: geom_timeline_label

Description Usage Arguments Value Examples

View source: R/hello.R

Description

This function adds location labels

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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.rm

show.legend

Show legend

inherit.aes

Inherit aes

...

other arguments

Value

Earthquake's labels

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## 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,
  y = COUNTRY,
  size = EQ_MAG_ML,
  colour = DEATHS,
  fill = DEATHS)) +
geom_timeline_label(aes(x = datetime,
  y = COUNTRY,
  label = LOCATION_NAME,
  number = 3,
  max_aes = EQ_MAG_ML))

## End(Not run)

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