Description Usage Arguments Value Aesthetics Examples
A ggplot2 graphical function to plot a timeline of earthquakes from cleaned data. The plot indicates the magnitude of each earthquake and number of deaths.
1 2 3 |
mapping |
mapping |
data |
data |
stat |
stat |
position |
position |
na.rm |
na.rm |
show.legend |
show.legend |
inherit.aes |
inherit.aes |
... |
... |
ggplot2 graphical object
geom_timeline
understands the following aesthetics:
x
DATE
y
Countries
xmin
minimum date for earthquakes
xmax
maximum date for earthquakes
size
used to size shape based on magnitude of earthquake eg EQ_PRIMARY
fill
used to colour shape based on number of deaths eg DEATHS
colour
used to colour shape based on number of deaths eg DEATHS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.