Description Usage Arguments Details Examples
View source: R/geom_timeline.R
Geom timeline label
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 add label to the created custom timeline chart.
1 2 3 4 5 6 7 | require(ggplot2)
raw_data <- eq_read_data()
clean_data <- eq_clean_data(raw_data)
clean_data <- dplyr::filter(clean_data, COUNTRY %in% c("JAPAN"), YEAR >= 2000)
ggplot2::ggplot(clean_data, aes(x = DATE)) +
geom_timeline()+
geom_timeline_label(aes(label = LOCATION_NAME, size = EQ_PRIMARY, nmax = 2, y = 0.15))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.