Description Usage Value Examples
View source: R/theme_timeline.R
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
1 |
theme
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.