theme_timeline: Timeline ad hoc Theme

Description Usage Arguments Value Examples

Description

This is a modification of the Classic Theme to improve the visualization of the geom_timeline geometry. Y axis is removed and legend placed at the bottom of the plot.

Usage

1
theme_timeline(base_size = 11, base_family = "")

Arguments

base_size

base font size

base_family

base font family

Value

ggplot theme

Examples

1
2
3
4
5
6
7
8
9
 {
data %>%
  dplyr::filter(COUNTRY == "USA" & YEAR > 2000) %>%
  ggplot() +
    geom_timeline(aes(x = DATE, y = COUNTRY, size = EQ_PRIMARY, color = DEATHS)) +
    geom_timeline_label(aes(x = DATE, y = COUNTRY, label = LOCATION_NAME,
      size = EQ_PRIMARY), n_max = 5) +
    theme_thimeline() +
    ggplot2::labs(size = "Richter Scale value:", color = "# of Deaths:")

frenkg/coursera.eq documentation built on May 12, 2019, 1:04 p.m.