Description Usage Format Examples
This geom plots a timeline showing earthquakes with the time it occured, the scaled size, the country and the number of casualties momentfunction uses the data file with fatal injuries in motor vehicle traffic crashes in the USA to summarizes the total number
1 |
An object of class GeomMyTimeline
(inherits from Geom
, ggproto
) of length 5.
1 2 3 4 5 6 7 8 9 | ## Not run:
data %>% eq_clean_data() %>%
filter(COUNTRY %in% c("USA"), YEAR > 2000) %>%
ggplot(aes(x = DATE, y = COUNTRY, colour = TOTAL_DEATHS, size = EQ_PRIMARY)) +
geom_timeline() +
theme_timeline() +
labs(size = "Richter scale value", colour = "# deaths")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.