This geom for ggplot2 called geom_timeline() for plotting a time line of earthquakes ranging from xmin to xmaxdates with a point for each earthquake. Optional aesthetics include color, size, and alpha (for transparency)
1 2 3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## 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() +
theme_timeline()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.