Description Usage Format Examples
A custom theme for timeline plots
1 |
An object of class theme
(inherits from gg
) of length 59.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.