Description Usage Arguments Value Examples
This function adds location labels
1 2 3 4 5 6 7 8 9 10 |
mapping |
Mapping |
data |
Data |
stat |
Stat |
position |
Position |
na.rm |
na.rm |
show.legend |
Show legend |
inherit.aes |
Inherit aes |
... |
other arguments |
Earthquake's labels
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.