GeomMyTimeline: Geom of a timeline containing earthquakes

Description Usage Format Examples

Description

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

Usage

1

Format

An object of class GeomMyTimeline (inherits from Geom, ggproto) of length 5.

Examples

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)

FerrieHeskes/FinalAssignmentR documentation built on May 26, 2019, 7:26 a.m.