Description Usage Arguments Value Examples
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.
1 | theme_timeline(base_size = 11, base_family = "")
|
base_size |
base font size |
base_family |
base font family |
ggplot theme
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:")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.