Description Usage Arguments Examples
This geom for adding annotations to the earthquake data. This geom adds a vertical line to each data point with a text annotation (e.g. the location of the earthquake) attached to each line
1 2 3 |
n_max |
An integer. number of earthquakes, where we take the n_max largest (by magnitude) earthquakes |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
data %>% eq_clean_data() %>%
dplyr::filter(Date >= "1980-01-01" & Date <="2014-01-01" & COUNTRY == c("ITALY","USA", "JORDAN")) %>%
ggplot(aes(x = Date,
y = COUNTRY,
color = DEATHS,
size = EQ_MAG_ML
)) +
geom_timeline() +
geom_timeline_label(aes(label = LOCATION_NAME), n_max = 5) +
theme_timeline()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.