theme_timeline: theme for timeline plotting with geom_timeline

Description Usage Value Examples

View source: R/theme_timeline.R

Description

This theme can be added to the plot made by geom_timeline, it only adds an x-axis and positions the legend to the bottom with a horizontal direction

Usage

1

Value

theme

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
eq_data %>% eq_clean_data() %>%
   filter(COUNTRY %in% c("GREECE", "ITALY"), year(DATE) > 2000) %>%
   ggplot(aes(x = DATE,
                  y = COUNTRY,
                  color = TOTAL_DEATHS,
                  size = EQ_PRIMARY)) +
   geom_timeline() +
   geom_timeline_label(aes(label = LOCATION), n_max = 8) +
   theme_timeline() +
   scale_size(name = "Richter scale", limits = c(5, 8)) +
   scale_color_gradient(name = "# Deaths", low = "black", high = "blue")

## End(Not run)

RMHoek/NOAAearthquakeAnalysis documentation built on May 14, 2019, 8:58 a.m.