Description Usage Arguments Details Examples
View source: R/geom_timeline.R
Geom timeline
1 2 3 |
mapping |
Mapping |
data |
Data |
stat |
Stat |
position |
Position |
na.rm |
NA remove |
show.legend |
Show legend |
inherit.aes |
Inherit aes |
... |
Other parameters |
This function creates timeline chart.
1 2 3 4 5 6 | require(ggplot2)
raw_data <- eq_read_data()
clean_data <- eq_clean_data(raw_data)
clean_data <- dplyr::filter(clean_data, COUNTRY %in% c("HUNGARY", "CROATIA"), YEAR >= 1500)
ggplot2::ggplot(clean_data, aes(x = DATE, y = COUNTRY)) +
geom_timeline()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.