theme_timeline: Timeline ad hoc Theme

Description Usage Arguments Value Examples

View source: R/plot.R

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
10
11
## Not run: 
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:")

## End(Not run)

frenkg/courseraeq documentation built on May 22, 2019, 12:42 p.m.