Description Usage Format Value Examples
This stat prepares data for mapping by geom_timeline by subsetting the data to the user-provided minimum and maximum dates as well as to the number of earthquakes specified by the user in the n_max variable
1 |
An object of class StatTimeline
(inherits from Stat
, ggproto
) of length 3.
a stat
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.