theme_eq: A custom theme for timeline plots

Description Usage Format Examples

Description

A custom theme for timeline plots

Usage

1

Format

An object of class theme (inherits from gg) of length 59.

Examples

1
2
3
4
5
6
7
8
data("eq_data")
ggplot(data = eq_data %>% filter(COUNTRY %in% c('COLOMBIA', 'MEXICO', 'USA')),
       aes(x = DATE, y = COUNTRY, size = EQ_PRIMARY,
           color = TOTAL_DEATHS, xmin = as.Date('1970-01-01'),
           xmax = as.Date('2015-01-01'))) +
  geom_timeline_label(aes(label = as.character(DATE)), nmax = 2) +
  geom_timeline() +
  theme_eq

slava-kohut/R-Capstone-SoftDev documentation built on May 20, 2019, 10 a.m.