Description Usage Note Examples
theme_timeline()
is used with geom_timeline()
and geom_timeline_label()
1 |
The background and y axis is set as blank, when only the line axis x is presented
1 2 3 4 5 6 7 8 9 | ## Not run:
ggplot(input_data, aes (x = date, y = COUNTRY,
color = as.numeric(DEATHS), size = as.numeric(EQ_PRIMARY))) +
geom_timeline(aes(xmin = as.Date("1900-01-01"), xmax = as.Date("1925-01-01")) +
geom_timeline_label(aes(label = LOCATION_NAME,
xmin = as.Date("1900-01-01"), xmax = as.Date("1925-01-01")),
n_max = 5) +
theme_timeline()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.