stat_timeline_label: stat_timeline_label

Description Usage Arguments Value Examples

View source: R/geom_timeline_label.R

Description

This is the actual stat that prepares data for mapping by geom_timeline

Usage

1
2
3
stat_timeline_label(mapping = NULL, data = NULL, geom = "timeline_label",
  position = "identity", na.rm = FALSE, show.legend = NA,
  inherit.aes = TRUE, n_max = Inf, ...)

Arguments

mapping

NULL

data

NULL

geom

polygon

position

identity

na.rm

FALSE

show.legend

NA

inherit.aes

TRUE

n_max

the maximum number of earthquakes to be plotted

...

any other arguments passed to stat_timeline_label

Value

a stat

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
ggplot(clean_earthquake_data, aes(
x = date,
y = COUNTRY,
color = TOTAL_DEATHS,
size = EQ_PRIMARY,
label = LOCATION_NAME
),
n_max = 10) +
geom_timeline_label()

## End(Not run)

codyschulz/earthquakeMap documentation built on March 18, 2018, 7:48 p.m.